in reply to Monitoring child threads
or something like that. anyway, this is roughly the way to achieve what you have in mind - if we're really talking about threads.# main thread: sub sig_die_handler { my $message = shift; warn $message; } [...] # child threads: local $SIG{__DIE__} = sub { &::sig_die_handler(shift) };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Monitoring child threads
by roboticus (Chancellor) on Jan 24, 2008 at 13:23 UTC | |
|
Re^2: Monitoring child threads
by weismat (Friar) on Jan 24, 2008 at 13:38 UTC |