-
Notifications
You must be signed in to change notification settings - Fork 36
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
command: fix signalling to command process group #637
command: fix signalling to command process group #637
Conversation
@sourishkrout I was able to reproduce the issue and verify this fix using grpcurl. |
@sourishkrout there is a genuine problem with I dug into this and when doing CTRL-C in the terminal, you actually send a SIGINT to the whole process group (a great thread that explains it thoroughly). Now I remember why I implemented this :) However, when running a server and executing commands by it, the server and the commands share the same process group and we kill the server when we send a signal to the process group; the effect is the reported bug. It seems like the ideal solution is to make the command its own process group, just as it is done by bash. I will try that. In fact, there is code doing that but it's not used in v2. |
That explains why the kernel server suddenly dies 😆. |
a5dca03
to
d92bd59
Compare
This fixes interactive commands like runme-in-runme.
313e00a
to
da2c38c
Compare
Quality Gate passedIssues Measures |
@sourishkrout ready to test and review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
This change also fixes a regression that broken running interactive commands, like runme in runme, run from the CLI in da2c38c.
It also disables FIFO which should mitigate #635 but a proper fix is needed.
Relates to #636