The first alarm is in a different process (same PID different process) due to the exec. I am not sure what is happening, but in general it is never a good idea to do anything complex in a signal handler.
On Tue, Oct 4, 2016 at 4:21 PM Shawn H Corey <[email protected]> wrote: > On Tue, 04 Oct 2016 19:32:44 +0000 > "Chas. Owens" <[email protected]> wrote: > > > It looks like the problem exists at the C level as well. This code > > doesn't work past the first alarm: > > Doesn't it say the alarm has to be reset by the code in the > documentation? After all, you don't want a second alarm to go off > before the first handler is finished. If it did, there's a chance of an > infinite number of alarms to stack up, fill memory, and kill the > process. > > > -- > Don't stop where the ink does. > > Shawn H Corey > mailto:[email protected] > > -- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > http://learn.perl.org/ > > >
