note 60553 added to function.pcntl-signal
| From: | wm161 at wm161 dot net | Date: | Tue, 10 Jan 2006 23:45:54 +0000 |
| Subject: | note 60553 added to function.pcntl-signal | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101522@lists.php.net to get a copy of this message | ||
When you are running a script inside of a loop that checks a socket, and it hangs on that checking
(Either by flaw or design), it can't handle signals until some data is received.
A suggested workaround would be to use the stream_set_blocking function, or stream_select on the
offending reads.
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-signal.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60553
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60553&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60553&report=yes
Search -- http://master.php.net/manage/user-notes.php