Back to DaemonApplication class

Method pcntlChildExitStatus

protected int
pcntlChildExitStatus
(mixed $status)
Method to return the exit code of a terminated child process.
Parameters
  • int $status The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
Returns
  • int The child process exit code.
Since
  • 1.7.3
-
  • \Joomla\CMS\Application\pcntl_wexitstatus()

Method pcntlChildExitStatus - Source code

/**
 * Method to return the exit code of a terminated child process.
 *
 * @param   integer  $status  The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
 *
 * @return  integer  The child process exit code.
 *
 * @see     pcntl_wexitstatus()
 * @since   1.7.3
 */
protected function pcntlChildExitStatus($status)
{
    return pcntl_wexitstatus($status);
}