note 38943 added to function.sleep
| From: | gid at gifpaste dot net | Date: | Tue, 13 Jan 2004 01:40:05 +0000 |
| Subject: | note 38943 added to function.sleep | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63385@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.sleep.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38943
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38943&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38943&report=yes
Search -- http://master.php.net/manage/user-notes.php