note 83719 added to function.pcntl-signal
| From: | HolgerHees at osu1 dot php dot net | Date: | Mon, 09 Jun 2008 07:49:24 +0000 |
| Subject: | note 83719 added to function.pcntl-signal | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140259@lists.php.net to get a copy of this message | ||
you should use following code to prevent situation described by anxious2006 (children exit near
simultaneously)
public function sig_handler($signo){
switch ($signo) {
case SIGCLD:
while( ( $pid = pcntl_wait ( $signo, WNOHANG ) ) > 0 ){
$signal = pcntl_wexitstatus ( $signo );
}
break;
}
}
----
Server IP: 69.147.83.197
Probable Submitter: 84.190.73.28
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-signal.php
Edit -- https://master.php.net/note/edit/83719
Del: integrated -- https://master.php.net/note/delete/83719/integrated
Del: useless -- https://master.php.net/note/delete/83719/useless
Del: bad code -- https://master.php.net/note/delete/83719/bad+code
Del: spam -- https://master.php.net/note/delete/83719/spam
Del: non-english -- https://master.php.net/note/delete/83719/non-english
Del: in docs -- https://master.php.net/note/delete/83719/in+docs
Del: other reasons-- https://master.php.net/note/delete/83719
Reject -- https://master.php.net/note/reject/83719
Search -- https://master.php.net/manage/user-notes.php