in reply to Re^2: Signal Handling throws Core Dump
in thread Signal Handling throws Core Dump
our $sig; $sig = 1; $SIG{INT} = sub { $sig++; }; my $oldsig; while (1) { if ($sig != $oldsig) { $control->removeMonitorPID($monitor->{PID}); #Execute the code ori +ginally in the signal handler. $oldsig = $sig; } .... Run main loop, but make sure to poll the status of the global v +ariable .... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Signal Handling throws Core Dump
by jrw (Monk) on Apr 26, 2007 at 16:52 UTC | |
|
Re^4: Signal Handling throws Core Dump
by dsb (Chaplain) on Apr 28, 2007 at 03:13 UTC |