in reply to "Alarm clock" termination

Something in your code (or in a module you use) is calling the alarm() function without setting an alarm signal handler:
$ perl587 -we'alarm(1); 1 while 1' Alarm clock $ $ perl587 -we'$SIG{ALRM}="IGNORE";alarm(1); 1 while 1' (hangs indefinitey)

Dave.

Replies are listed 'Best First'.
Re^2: "Alarm clock" termination
by nyk (Novice) on Oct 13, 2005 at 12:39 UTC
    Thanks a lot for the info, I'll of course try to ignore the signal and hope my program wont hang also instead. :) But what could be a cause for the alarm signal?
      But what could be a cause for the alarm signal?
      To repeat what I just said: Something in your code (or in a module you use) is calling the alarm() function.

      This function sets up a condition whereby after the number of seconds specified, an ALRM signal is sent to the process.

      Dave.