note 38943 rejected from function.sleep by didou

From: Date: Tue, 13 Jan 2004 01:48:48 +0000
Subject: note 38943 rejected from function.sleep by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63386@lists.php.net to get a copy of this message
Note Submitter: gid@gifpaste.net ---- The docs aren't exactly correct, on linux, sleep() acts like the libc sleep() call. (probably because php's sleep is wrapper to this function) Description (from man 3 sleep) sleep() makes the current process sleep until X seconds seconds have elapsed or a signal arrives which is not ignored. So if you have a pcntl_signal() handler installed for say SIGTERM, then sleep will end as soon as the signal is received, or X seconds are up, whichever comes first. This was kind freaking my out why my sleep was getting skipped after issuing a kill signal to a daemon that I wrote.

« previous php.notes (#63386) next »