note 32485 added to function.pcntl-waitpid
| From: | dilinger at voxel dot net | Date: | Wed, 28 May 2003 22:13:38 +0000 |
| Subject: | note 32485 added to function.pcntl-waitpid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49213@lists.php.net to get a copy of this message | ||
Note that as of php4.3.2RC4, the 'status' argument must be a reference to a variable; NULL
and 0 are not allowed.
People used to using waitpid() in POSIX/C may try:
$p = pcntl_waitpid($pid, NULL, WNOHANG);
Instead, you'll need to use a variable, even if you're not going to use it:
$p = pcntl_waitpid($pid, &$temp, WNOHANG);
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-waitpid.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32485
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32485&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32485&report=yes