You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create_group is used, the process, being in its own group, does not receive signals that are sent to the foreground process group. I believe (but have not verified) that delegate_ctrlc could be used in this situation to at least get the child process to cleanly shut down on ctrl-c. But there are other signals equally important, including SIGTSTP (ctrl-z), SIGWINCH, SIGHUP, SIGQUIT, and SIGTERM.
The interface of process does not help propagating any of those, and there's no portable way to handle it that will work across unix and windows.
So, I suggest adding something like interruptProcessGroupOf that allows sending other signals than SIGINT. The user can then use https://github.com/pmlodawski/signal to portably install a signal handler that propagates signals to whatever child processes it has run this way.
This might also address #68, although it would be without the nice delegation interface. I think it may make more sense to not have special stuff in this library to delegate every signal, but just give the users the tools they need to build whatever signal propagation they desire.
The text was updated successfully, but these errors were encountered:
When create_group is used, the process, being in its own group, does not receive signals that are sent to the foreground process group. I believe (but have not verified) that delegate_ctrlc could be used in this situation to at least get the child process to cleanly shut down on ctrl-c. But there are other signals equally important, including SIGTSTP (ctrl-z), SIGWINCH, SIGHUP, SIGQUIT, and SIGTERM.
The interface of process does not help propagating any of those, and there's no portable way to handle it that will work across unix and windows.
So, I suggest adding something like interruptProcessGroupOf that allows sending other signals than SIGINT. The user can then use https://github.com/pmlodawski/signal to portably install a signal handler that propagates signals to whatever child processes it has run this way.
This might also address #68, although it would be without the nice delegation interface. I think it may make more sense to not have special stuff in this library to delegate every signal, but just give the users the tools they need to build whatever signal propagation they desire.
The text was updated successfully, but these errors were encountered: