protected function sigtimedwait($signals, $siginfo, $sec, $nano)
    {
        \pcntl_signal_dispatch();
        if (\time_nanosleep($sec, $nano) === true) {
            return false;
        }
        \pcntl_signal_dispatch();
        return true;
    }
protected function sigtimedwait($signals, $siginfo, $sec, $nano)
    {
        \pcntl_signal_dispatch();
        if (\time_nanosleep($sec, $nano) === true) {
            return false;
        }
        \pcntl_signal_dispatch();
        return true;
    }
protected function sigtimedwait ( $ signals , $ siginfo , $ sec , $ nano ) { \ pcntl_signal_dispatch ( ) ; if ( \ time_nanosleep ( $ sec , $ nano ) === true ) { return false ; } \ pcntl_signal_dispatch ( ) ; return true ; }
Implementation of pcntl_sigtimedwait for Mac.

@param array Signal
@param null|array SigInfo
@param int Seconds
@param int Nanoseconds
@param integer $sec
@param double $nano
@return boolean Success
Implementation of pcntl_sigtimedwait for Mac .