in reply to Re: Gracefull Death of a Child: How to Catch Mum's SIGNALS?
in thread Gracefull Death of a Child: How to Catch Mum's SIGNALS?
and killing mum.pl by her pid by USR1 - but any other SIG does the same:for my $k ( keys %SIG ) { $SIG{$k} = sub { print "\n$$: 'Mum' Caught \$SIG{ $k }\n" } }
I get mum's sighkill -USR1 7405
but Darling still dies silently ;(7405: 'Mum' Caught $SIG{ USR1 }
If (me, playing around) Mum and Darling use 'local':
Only Mum doesn't catch any SIG anymore, I just getfor my $k ( keys %SIG ) { local $SIG{$k} = sub { print "\n$$: Mum Caught \$SIG{ $k }\n" } }
(in german) :(userdefined Signal 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Gracefull Death of a Child: How to Catch Mum's SIGNALS?
by gt8073a (Hermit) on Apr 04, 2007 at 16:00 UTC | |
by Anonymous Monk on Apr 05, 2007 at 10:34 UTC | |
|
Re^3: Gracefull Death of a Child: How to Catch Mum's SIGNALS?
by Moron (Curate) on Apr 04, 2007 at 13:38 UTC | |
by Anonymous Monk on Apr 04, 2007 at 14:36 UTC |