/PHP-5.4/Zend/ |
H A D | zend_signal.c | 95 queue->zend_signal.signo = 0; in zend_signal_handler_defer() 106 queue->zend_signal.signo = signo; in zend_signal_handler_defer() 145 queue->zend_signal.signo = 0; in zend_signal_handler_unblock() 170 sigaddset(&sigset, signo); in zend_signal_handler() 175 raise(signo); in zend_signal_handler() 181 SIGG(handlers)[signo-1].flags = 0; in zend_signal_handler() 217 if (sigaction(signo, &sa, NULL) < 0) { in zend_sigaction() 223 sigaddset(&sigset, signo); in zend_sigaction() 332 queue->zend_signal.signo = 0; in zend_signal_globals_ctor() 347 int signo; in zend_signal_startup() local [all …]
|
H A D | zend_signal.h | 45 int signo; member 85 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context); 91 ZEND_API int zend_signal(int signo, void (*handler)(int) TSRMLS_DC); 92 ZEND_API int zend_sigaction(int signo, const struct sigaction *act, struct sigaction *oldact TSRMLS… 95 #define zend_sigprocmask(signo, set, oldset) tsrm_sigmask((signo), (set), (oldset)) argument 97 #define zend_sigprocmask(signo, set, oldset) sigprocmask((signo), (set), (oldset)) argument
|
H A D | zend_execute_API.c | 1495 int signo; in zend_set_timeout() local 1504 signo = SIGALRM; in zend_set_timeout() 1508 signo = SIGPROF; in zend_set_timeout() 1513 zend_signal(signo, zend_timeout TSRMLS_CC); in zend_set_timeout() 1517 signal(signo, zend_timeout); in zend_set_timeout() 1519 sigaddset(&sigset, signo); in zend_set_timeout()
|
/PHP-5.4/ext/pcntl/tests/ |
H A D | 002.phpt | 25 echo "signo == SIGTERM\n"; 26 var_dump($signo === SIGTERM && $signo === $siginfo['signo']); 37 echo "signo == SIGCHLD\n"; 38 var_dump($signo === SIGCHLD && $signo === $siginfo['signo']); 43 echo "signo === uid\n"; 45 echo "signo === pid\n"; 79 signo == SIGTERM 83 signo == SIGCHLD 87 signo === SIGCHLD 89 signo === uid [all …]
|
H A D | signal_closure_handler.phpt | 14 pcntl_signal(SIGTERM, function ($signo) { echo "Signal handler called!\n"; });
|
H A D | pcntl_signal_dispatch.phpt | 14 pcntl_signal(SIGTERM, function ($signo) { echo "Signal handler called!\n"; });
|
H A D | pcntl_signal.phpt | 8 pcntl_signal(SIGTERM, function($signo){
|
/PHP-5.4/ext/pcntl/ |
H A D | php_signal.c | 28 Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) in php_signal4() argument 42 if (signo == SIGALRM || (! restart)) { in php_signal4() 52 if (zend_sigaction(signo, &act, &oact TSRMLS_CC) < 0) in php_signal4() 54 if (sigaction(signo, &act, &oact) < 0) in php_signal4() 63 Sigfunc *php_signal(int signo, Sigfunc *func, int restart) in php_signal() argument 65 return php_signal4(signo, func, restart, 0); in php_signal()
|
H A D | pcntl.c | 68 ZEND_ARG_INFO(0, signo) 845 long signo; in PHP_FUNCTION() local 852 if (signo < 1 || signo > 32) { in PHP_FUNCTION() 919 long how, signo; in PHP_FUNCTION() local 941 signo = Z_LVAL_PP(user_signo); in PHP_FUNCTION() 963 for (signo = 1; signo < MAX(NSIG-1, SIGRTMAX); ++signo) { in PHP_FUNCTION() 983 int signo; in pcntl_sigwaitinfo() local 1036 signo = siginfo.si_signo; in pcntl_sigwaitinfo() 1049 switch(signo) { in pcntl_sigwaitinfo() 1081 RETURN_LONG(signo); in pcntl_sigwaitinfo() [all …]
|
H A D | php_signal.h | 33 Sigfunc *php_signal(int signo, Sigfunc *func, int restart); 34 Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all);
|
H A D | php_pcntl.h | 64 long signo; member
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_signals.c | 142 static void sig_soft_quit(int signo) /* {{{ */ in sig_soft_quit() argument 156 static void sig_handler(int signo) /* {{{ */ in sig_handler() argument 176 s = sig_chars[signo]; in sig_handler()
|
H A D | fpm_process_ctl.c | 146 void fpm_pctl_kill_all(int signo) /* {{{ */ in fpm_pctl_kill_all() argument 155 int res = kill(child->pid, signo); in fpm_pctl_kill_all() 158 child->wp->config->name, signo, in fpm_pctl_kill_all() 159 fpm_signal_names[signo] ? fpm_signal_names[signo] : "", (int) child->pid); in fpm_pctl_kill_all()
|
H A D | fpm_process_ctl.h | 23 void fpm_pctl_kill_all(int signo);
|
H A D | fastcgi.c | 162 static void fcgi_signal_handler(int signo) in fcgi_signal_handler() argument 164 if (signo == SIGUSR1 || signo == SIGTERM) { in fcgi_signal_handler()
|
/PHP-5.4/sapi/cgi/ |
H A D | fastcgi.c | 378 static void fcgi_signal_handler(int signo) in fcgi_signal_handler() argument 380 if (signo == SIGUSR1 || signo == SIGTERM) { in fcgi_signal_handler()
|
/PHP-5.4/sapi/litespeed/ |
H A D | lsapilib.c | 200 static void lsapi_signal(int signo, sighandler_t handler) in lsapi_signal() argument 204 sigaction(signo, NULL, &sa); in lsapi_signal() 211 sigaction(signo, &sa, NULL); in lsapi_signal()
|