PHP.nl

pcntl_sigtimedwait

pcntl_sigtimedwait

Waits for signals, with a timeout

 **pcntl_sigtimedwait** array $signals array $info int $seconds int $nanoseconds

The function operates in exactly the same way as except that it takes two additional parameters, and , which enable an upper bound to be placed on the time for which the script is suspended. pcntl_sigtimedwait``pcntl_sigwaitinfo``seconds``nanoseconds

signalsArray of signals to wait for.

info The is set to an array containing information about the signal. See . info``pcntl_sigwaitinfo

secondsTimeout in seconds.

nanosecondsTimeout in nanoseconds.

returns a signal number on success, return.falseforfailure.

pcntl_sigtimedwait

pcntl_sigprocmask``pcntl_sigwaitinfo