Home
last modified time | relevance | path

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

/PHP-8.3/ext/pcntl/tests/
H A D002.phpt28 $signo = pcntl_sigwaitinfo(array(SIGTERM), $siginfo);
30 var_dump($signo === SIGTERM && $signo === $siginfo['signo']);
33 var_dump(($siginfo['code'] === SI_USER) || ($siginfo['code'] === SI_NOINFO));
35 var_dump($siginfo['code'] === SI_USER);
40 $signo = pcntl_sigwaitinfo(array((string)SIGCHLD), $siginfo);
44 var_dump($siginfo['code'] === CLD_KILLED);
46 var_dump($siginfo['signo'] === SIGCHLD);
48 var_dump($siginfo['uid'] === posix_getuid());
50 var_dump($siginfo['pid'] === $pid);
74 $siginfo = NULL;
[all …]
H A Dpcntl_realtime_signal.phpt11 pcntl_signal(SIGRTMIN, function ($signo, $siginfo) {
12 printf("got realtime signal from %s, ruid:%s\n", $siginfo['pid'] ?? '', $siginfo['uid'] ?? '');
H A Dpcntl_alarm.phpt16 $siginfo = array();
17 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-8.3/ext/pcntl/
H A Dpcntl.c776 siginfo_t siginfo; in pcntl_sigwaitinfo() local
813 signo = sigtimedwait(&set, &siginfo, &timeout); in pcntl_sigwaitinfo()
815 signo = sigwaitinfo(&set, &siginfo); in pcntl_sigwaitinfo()
826 if (!signo && siginfo.si_signo) { in pcntl_sigwaitinfo()
827 signo = siginfo.si_signo; in pcntl_sigwaitinfo()
829 pcntl_siginfo_to_zval(signo, &siginfo, user_siginfo); in pcntl_sigwaitinfo()
889 add_assoc_long_ex(user_siginfo, "fd", sizeof("fd")-1, siginfo->si_fd); in pcntl_siginfo_to_zval()
896 add_assoc_long_ex(user_siginfo, "pid", sizeof("pid")-1, siginfo->si_pid); in pcntl_siginfo_to_zval()
897 add_assoc_long_ex(user_siginfo, "uid", sizeof("uid")-1, siginfo->si_uid); in pcntl_siginfo_to_zval()
1062 psig->siginfo = *siginfo; in pcntl_signal_handler()
[all …]
H A Dphp_pcntl.h40 siginfo_t siginfo; member
H A Dconfig.m416 #include <siginfo.h>
/PHP-8.3/Zend/
H A Dzend_signal.c64 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context);
84 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 Dzend_signal.h44 siginfo_t *siginfo; member

Completed in 22 milliseconds