Searched refs:siginfo (Results 1 – 8 of 8) sorted by relevance
/PHP-7.1/ext/pcntl/tests/ |
H A D | 002.phpt | 24 $signo = pcntl_sigwaitinfo(array(SIGTERM), $siginfo); 26 var_dump($signo === SIGTERM && $signo === $siginfo['signo']); 29 var_dump(($siginfo['code'] === SI_USER) || ($siginfo['code'] === SI_NOINFO)); 31 var_dump($siginfo['code'] === SI_USER); 36 $signo = pcntl_sigwaitinfo(array((string)SIGCHLD), $siginfo); 40 var_dump($siginfo['code'] === CLD_KILLED); 42 var_dump($siginfo['signo'] === SIGCHLD); 44 var_dump($siginfo['uid'] === posix_getuid()); 46 var_dump($siginfo['pid'] === $pid); 70 $siginfo = NULL; [all …]
|
H A D | pcntl_alarm.phpt | 15 $siginfo = array(); 16 var_dump(pcntl_sigtimedwait(array(SIGALRM),$siginfo,2) === SIGALRM);
|
H A D | pcntl_signal.phpt | 14 pcntl_signal(SIGUSR1, function($signo, $siginfo){ 15 printf("got signal from %s\n", $siginfo['pid'] ?? 'nobody');
|
/PHP-7.1/Zend/ |
H A D | zend_signal.c | 66 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context); 85 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler_defer() argument 106 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 112 …zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.conte… in zend_signal_handler_defer() 127 queue->zend_signal.siginfo = siginfo; in zend_signal_handler_defer() 146 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 168 zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); in zend_signal_handler_unblock() 177 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 | 48 siginfo_t *siginfo; member
|
/PHP-7.1/ext/pcntl/ |
H A D | pcntl.c | 1151 siginfo_t siginfo; in pcntl_sigwaitinfo() local 1182 signo = sigtimedwait(&set, &siginfo, &timeout); in pcntl_sigwaitinfo() 1184 signo = sigwaitinfo(&set, &siginfo); in pcntl_sigwaitinfo() 1195 if (!signo && siginfo.si_signo) { in pcntl_sigwaitinfo() 1196 signo = siginfo.si_signo; in pcntl_sigwaitinfo() 1198 pcntl_siginfo_to_zval(signo, &siginfo, user_siginfo); in pcntl_sigwaitinfo() 1231 add_assoc_long_ex(user_siginfo, "code", sizeof("code")-1, siginfo->si_code); in pcntl_siginfo_to_zval() 1261 add_assoc_long_ex(user_siginfo, "fd", sizeof("fd")-1, siginfo->si_fd); in pcntl_siginfo_to_zval() 1374 static void pcntl_signal_handler(int signo, siginfo_t *siginfo, void *context) in pcntl_signal_handler() argument 1392 psig->siginfo = *siginfo; in pcntl_signal_handler() [all …]
|
H A D | config.m4 | 18 #include <siginfo.h>
|
H A D | php_pcntl.h | 80 siginfo_t siginfo; member
|
Completed in 15 milliseconds