Searched refs:siginfo (Results 1 – 9 of 9) sorted by relevance
/php-src/ext/pcntl/tests/ |
H A D | 002.phpt | 31 $signo = pcntl_sigwaitinfo(array(SIGTERM), $siginfo); 33 var_dump($signo === SIGTERM && $signo === $siginfo['signo']); 36 var_dump(($siginfo['code'] === SI_USER) || ($siginfo['code'] === SI_NOINFO)); 38 var_dump($siginfo['code'] === SI_USER); 43 $signo = pcntl_sigwaitinfo(array((string)SIGCHLD), $siginfo); 47 var_dump($siginfo['code'] === CLD_KILLED); 49 var_dump($siginfo['signo'] === SIGCHLD); 51 var_dump($siginfo['uid'] === posix_getuid()); 53 var_dump($siginfo['pid'] === $pid); 56 $siginfo = NULL; [all …]
|
H A D | pcntl_waitid.phpt | 17 var_dump(pcntl_waitid(P_PID, $pid, $siginfo, 0)); 20 var_dump(pcntl_waitid(P_PID, $pid, $siginfo, WSTOPPED)); 22 var_dump(pcntl_waitid(P_PID, $pid, $siginfo, WCONTINUED)); 24 var_dump(pcntl_waitid(P_PID, $pid, $siginfo, WEXITED)); 25 var_dump($siginfo["status"]);
|
H A D | pcntl_realtime_signal.phpt | 11 pcntl_signal(SIGRTMIN, function ($signo, $siginfo) { 12 printf("got realtime signal from %s, ruid:%s\n", $siginfo['pid'] ?? '', $siginfo['uid'] ?? '');
|
H A D | pcntl_alarm.phpt | 16 $siginfo = array(); 17 $signo = pcntl_sigtimedwait(array(SIGALRM),$siginfo,2);
|
H A D | pcntl_signal.phpt | 14 pcntl_signal(SIGUSR1, function($signo, $siginfo){ 15 printf("got signal from %s\n", $siginfo['pid'] ?? 'nobody');
|
/php-src/ext/pcntl/ |
H A D | pcntl.c | 419 siginfo_t siginfo; in PHP_FUNCTION() local 428 pcntl_siginfo_to_zval(SIGCHLD, &siginfo, user_siginfo); in PHP_FUNCTION() 987 siginfo_t siginfo; in PHP_FUNCTION() local 988 int signal_no = sigwaitinfo(&set, &siginfo); in PHP_FUNCTION() 997 if (!signal_no && siginfo.si_signo) { in PHP_FUNCTION() 998 signal_no = siginfo.si_signo; in PHP_FUNCTION() 1046 siginfo_t siginfo; in PHP_FUNCTION() local 1060 if (!signal_no && siginfo.si_signo) { in PHP_FUNCTION() 1061 signal_no = siginfo.si_signo; in PHP_FUNCTION() 1119 if (siginfo->si_code == TRAP_CAP) { in pcntl_siginfo_to_zval() [all …]
|
H A D | php_pcntl.h | 40 siginfo_t siginfo; member
|
/php-src/Zend/ |
H A D | zend_signal.c | 64 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context); 84 static void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler_defer() argument 95 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 107 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 113 …zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.conte… in zend_signal_handler_defer() 128 queue->zend_signal.siginfo = siginfo; in zend_signal_handler_defer() 147 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 169 zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); in zend_signal_handler_unblock() 178 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler() argument 219 (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context); in zend_signal_handler()
|
H A D | zend_signal.h | 46 siginfo_t *siginfo; member
|
Completed in 16 milliseconds