Query: pcntl_signal_dispatch
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PCNTL_SIGNAL_DISPATCH(3) 1 PCNTL_SIGNAL_DISPATCH(3) pcntl_signal_dispatch - Calls signal handlers for pending signalsSYNOPSISbool pcntl_signal_dispatch (void )DESCRIPTIONThe pcntl_signal_dispatch(3) function calls the signal handlers installed by pcntl_signal(3) for each pending signal.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 pcntl_signal_dispatch(3) example <?php echo "Installing signal handler... "; pcntl_signal(SIGHUP, function($signo) { echo "signal handler called "; }); echo "Generating signal SIGHUP to self... "; posix_kill(posix_getpid(), SIGHUP); echo "Dispatching... "; pcntl_signal_dispatch(); echo "Done "; ?> The above example will output something similar to: Installing signal handler... Generating signal SIGHUP to self... Dispatching... signal handler called DoneSEE ALSOpcntl_signal(3), pcntl_sigprocmask(3), pcntl_sigwaitinfo(3), pcntl_sigtimedwait(3). PHP Documentation Group PCNTL_SIGNAL_DISPATCH(3)
Related Man Pages |
---|
sysv_signal(3) - centos |
sigset(3c) - hpux |
sysv_signal(3) - debian |
sighold(3c) - hpux |
pcntl_signal_dispatch(3) - php |
Similar Topics in the Unix Linux Community |
---|
Installing GUI |
why printf() function don't go work? |
'SIGHUP','SIGTSTP' undeclared |
Serial port signal(IRQ) handler (using C) |
Installing winpcap and configure it with cygwin |