-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Clean up child process handling #2999
Comments
@slackpad not sure if the following issue is covered by this master ticket, but something I've observed is that $ consul watch -prefix foo/bar sh -c 'exit 2'; echo $?
Error executing handler: exit status 2
1 This makes it difficult to integrate Let me know if it's not covered, I'll happily open a new ticket. |
Hi @maxenglander that's not captured here and is probably better on a separate issue. A similar change for |
This issue consolidates several similar issues with regards to child process handling. There are several areas in Consul where we spawn child processes but we have various issues:
consul exec
consul lock
consul watch
There are cases where we don't properly clean up and can leak child processes, or we don't handle signals properly. Some places we assume a shell, and others we don't. We should factor child process handling to be done in a uniform way (look at https://github.com/hashicorp/consul-template/tree/master/child, and maybe use that) and make sure that:
stdin
works on Windows (stdin for consul exec doesn't work on windows #1924)The text was updated successfully, but these errors were encountered: