Home
last modified time | relevance | path

Searched refs:siginfo (Results 1 – 8 of 8) sorted by relevance

/PHP-7.1/ext/pcntl/tests/
H A D002.phpt24 $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 Dpcntl_alarm.phpt15 $siginfo = array();
16 var_dump(pcntl_sigtimedwait(array(SIGALRM),$siginfo,2) === SIGALRM);
H A Dpcntl_signal.phpt14 pcntl_signal(SIGUSR1, function($signo, $siginfo){
15 printf("got signal from %s\n", $siginfo['pid'] ?? 'nobody');
/PHP-7.1/Zend/
H A Dzend_signal.c66 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 Dzend_signal.h48 siginfo_t *siginfo; member
/PHP-7.1/ext/pcntl/
H A Dpcntl.c1151 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 Dconfig.m418 #include <siginfo.h>
H A Dphp_pcntl.h80 siginfo_t siginfo; member

Completed in 15 milliseconds