note 52713 deleted from function.pcntl-wifexited by didou
| From: | didou@php.net | Date: | Sun, 04 Feb 2007 02:30:17 +0000 |
| Subject: | note 52713 deleted from function.pcntl-wifexited by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122781@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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.