The pcntl_sigwaitinfo() function suspends execution of the
calling script until one of the signals given in signals
are delivered. If one of the signal is already pending (e.g. blocked by
pcntl_sigprocmask()),
pcntl_sigwaitinfo() will return immediately.
Parameters
signals
Array of signals to wait for.
info
The info parameter is set to an array containing
information about the signal.
The following elements are set for all signals:
signo: Signal number
errno: An error number
code: Signal code
The following elements may be set for the SIGCHLD signal: