-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Kubetail kills parent shell #108
Comments
Kubetail should kill its children before exiting, instead of killing the entire process group. |
@wknapik That makes sense. Could you help out with this? |
@johanhaleby if it was a small fix, I'd submit a PR, but there's too much to change before this can be done properly. I'd recommend cleaning up shellcheck findings and dropping the |
Other symptoms: $ kubetail $args | less
<some output, but ends prematurely>
$ echo $?
15 Instead, I need to: kubetail $args > file && less file or better: less -f <(kubetail $args) This also fails: $ kubetail $args | tail
[1] 7136 done kubetail $args |
7137 terminated tail
$ echo $?
143 |
If you call kubetail from a script, it will kill the script when it's done.
This forces the user to trap TERM, to avoid failure during successful execution and consequently messes up signal handling in that script, which won't die when sent TERM from elsewhere.
See: https://github.com/johanhaleby/kubetail/blob/master/kubetail#L277
The text was updated successfully, but these errors were encountered: