note 52713 added to function.pcntl-wifexited
| From: | php-general at lists dot php dot net | Date: | Tue, 10 May 2005 17:43:41 +0000 |
| Subject: | note 52713 added to function.pcntl-wifexited | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89222@lists.php.net to get a copy of this message | ||
The documentation claims a TRUE return in the case of a "successful exit", but that is
misleading. If you read the unix man page for the underlying WIFEXITED() macro, you will find that
it returns TRUE in the case of a "normal exit". In other words, this function returns
TRUE if the child process ended by returning from main() or by calling an exit() function. It
returns FALSE in other cases, such as when the child process was terminated with a signal. This
function does not test the child's numeric exit code for success or failure.
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-wifexited.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52713
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52713&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52713&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52713&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52713&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52713&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52713&report=yes
Search -- http://master.php.net/manage/user-notes.php