Back to DaemonApplication class

Method pcntlWait

protected int
pcntlWait
(mixed &$status, mixed $options = 0)
Method to wait on or return the status of a forked child.
Parameters
  • int & $status Status information.
  • int $options If wait3 is available on your system (mostly BSD-style systems), you can provide the optional options parameter.
Returns
  • int The process ID of the child which exited, -1 on error or zero if WNOHANG was provided as an option (on wait3-available systems) and no child was available.
Since
  • 1.7.3
-
  • \Joomla\CMS\Application\pcntl_wait()

Method pcntlWait - Source code

/**
 * Method to wait on or return the status of a forked child.
 *
 * @param   integer  &$status  Status information.
 * @param   integer  $options  If wait3 is available on your system (mostly BSD-style systems),
 *                             you can provide the optional options parameter.
 *
 * @return  integer  The process ID of the child which exited, -1 on error or zero if WNOHANG
 *                   was provided as an option (on wait3-available systems) and no child was available.
 *
 * @see     pcntl_wait()
 * @since   1.7.3
 */
protected function pcntlWait(&$status, $options = 0)
{
    return pcntl_wait($status, $options);
}