Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only setpgid on child calls if subshell is used #306

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jul 18, 2022

Makes it so that only commands that use 'sh -c' to wrap a shell-script
like command get setpgid set to ensure signal propagation to the process
being run in the subshell. Uses new consul-template/child exported
features to detect and set it (thus the CT version bump).

Consul-template's related PR for context: hashicorp/consul-template#1600

Fixes #305

@eikenb eikenb added the bug label Jul 18, 2022
@eikenb eikenb requested a review from a team July 18, 2022 23:05
@eikenb eikenb added this to the v0.13.0 milestone Jul 18, 2022
Makes it so that only commands that use 'sh -c' to wrap a shell-script
like command get setpgid set to ensure signal propagation to the process
being run in the subshell. Uses new consul-template/child exported
features to detect and set it (thus the CT version bump).

This is needed to fix issues caused by setpgid, primarily when the
sub-shell isn't used it still effects things like you can't run an
interactive bash setting as the command and possibly other shell
scripts.
@eikenb eikenb force-pushed the limit-setpgid-to-subshells branch from e0c1492 to 7da7b62 Compare July 18, 2022 23:15
@eikenb eikenb merged commit b0a02bd into main Jul 18, 2022
@eikenb eikenb deleted the limit-setpgid-to-subshells branch July 18, 2022 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade from 0.11 to 0.12 break support for interactive shells
1 participant