[Gambas-user] Cascading child processes
T Lee Davidson
t.lee.davidson at gmail.com
Fri Dec 6 18:43:18 CET 2019
On 12/5/19 10:37 PM, Bruce wrote:
> I can't see a way to ignore or block a SIGTERM in SMain itself (and I am not sure that I really want to).
Is the following insufficient?
http://gambaswiki.org/wiki/comp/gb.signal
I can think of two strategies to accomplish killing child processes only.
1. Make each child process retain a handle on each of its own child processes so that you can, as you said, "cascade the
signalling down through all these programs." Trap SIGTERM and, before exiting, send SIGTERM to all owned child processes.
2. Start sMain with `nohup` and then use SIGHUP to kill the children.
___
Lee
More information about the User
mailing list