Searched refs:siginfo (Results 1 – 9 of 9) sorted by relevance
/PHP-7.3/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_realtime_signal.phpt | 10 pcntl_signal(SIGRTMIN, function ($signo, $siginfo) { 11 printf("got realtime signal from %s, ruid:%s\n", $siginfo['pid'] ?? '', $siginfo['uid'] ?? '');
|
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.3/Zend/ |
H A D | zend_signal.c | 64 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context); 83 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler_defer() argument 104 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 110 …zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.conte… in zend_signal_handler_defer() 125 queue->zend_signal.siginfo = siginfo; in zend_signal_handler_defer() 144 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer() 166 zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); in zend_signal_handler_unblock() 175 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler() argument 217 (*(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
|
/PHP-7.3/ext/pcntl/ |
H A D | pcntl.c | 1164 siginfo_t siginfo; in pcntl_sigwaitinfo() local 1195 signo = sigtimedwait(&set, &siginfo, &timeout); in pcntl_sigwaitinfo() 1197 signo = sigwaitinfo(&set, &siginfo); in pcntl_sigwaitinfo() 1208 if (!signo && siginfo.si_signo) { in pcntl_sigwaitinfo() 1209 signo = siginfo.si_signo; in pcntl_sigwaitinfo() 1211 pcntl_siginfo_to_zval(signo, &siginfo, user_siginfo); in pcntl_sigwaitinfo() 1274 add_assoc_long_ex(user_siginfo, "fd", sizeof("fd")-1, siginfo->si_fd); in pcntl_siginfo_to_zval() 1281 add_assoc_long_ex(user_siginfo, "pid", sizeof("pid")-1, siginfo->si_pid); in pcntl_siginfo_to_zval() 1282 add_assoc_long_ex(user_siginfo, "uid", sizeof("uid")-1, siginfo->si_uid); in pcntl_siginfo_to_zval() 1411 psig->siginfo = *siginfo; in pcntl_signal_handler() [all …]
|
H A D | config.m4 | 16 #include <siginfo.h>
|
H A D | php_pcntl.h | 78 siginfo_t siginfo; member
|
Completed in 15 milliseconds