I'm surprised that the child doesn't terminate, since that is the action of the system default SIGHUP handler. If open or something else modifies that handler to keep the process running, this,
should make sure the child terminates right after the parent does.local $SIG{HUP} = sub { exit 0 };
After Compline,
Zaxo
In reply to Re: Automatically killing a child
by Zaxo
in thread Automatically killing a child
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |