For example, doing something along this lines:
while (1) { print "sleeping\n"; system 'sleep', 2; warn "system: $!" if -1 == $?; my $signal_caught = $? & 127; die "Child got a SIGINT" if 2 == $signal_caught; }
--
David Serrano
In reply to Re^2: Get parent process to handle signals for its children?
by Hue-Bond
in thread Get parent process to handle signals for its children?
by slaniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |