in reply to Re: Get parent process to handle signals for its children?
in thread Get parent process to handle signals for its children?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Get parent process to handle signals for its children?
by slaniel (Acolyte) on Jul 12, 2006 at 19:10 UTC |