in reply to Re: Help on crash in sleep() !
in thread Help on crash in sleep() !

It seems to me that a signal would be possible only if the process would be expecting something, if we were in multithread. This is not the case. We wait 1 minute before checking new work to do. It a simple "polling". Yes it would be possible to wrap it in a main script, but I would like to understand.

Replies are listed 'Best First'.
Re^3: Help on crash in sleep() !
by Corion (Patriarch) on Oct 24, 2015 at 06:31 UTC

    Have you read the documentation link I provided?

    May be interrupted if the process receives a signal such as SIGALRM .

    So, if anything sends a signal to your process, such as SIGALRM, it might wake up or crash.