in reply to Re^2: System call + signals = bad return code?
in thread System call + signals = bad return code?
The Signals section in Chapter 16 (IPC) of the Camel explains the rationale for this further -- but the general rule of thumb is that your handler shouldn't do anything more complicated than updating a variable, e.g.
my $interrupted = 0; $SIG{ALRM} = sub { $interrupted = 1; };
|
---|