Lines Matching refs:handler

65 static zend_result zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*));
191 if (p_sig.handler == SIG_DFL) { /* raise default handler */ in zend_signal_handler()
213 } else if (p_sig.handler != SIG_IGN) { in zend_signal_handler()
217 SIGG(handlers)[signo-1].handler = SIG_DFL; in zend_signal_handler()
219 (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context); in zend_signal_handler()
221 (*(void (*)(int))p_sig.handler)(signo); in zend_signal_handler()
237 oldact->sa_handler = (void *) SIGG(handlers)[signo-1].handler; in zend_sigaction()
243 SIGG(handlers)[signo-1].handler = (void *) act->sa_sigaction; in zend_sigaction()
245 SIGG(handlers)[signo-1].handler = (void *) act->sa_handler; in zend_sigaction()
249 if (SIGG(handlers)[signo-1].handler == (void *) SIG_IGN) { in zend_sigaction()
271 ZEND_API void zend_signal(int signo, void (*handler)(int)) in zend_signal()
277 sa.sa_handler = handler; in zend_signal()
288 static zend_result zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*)) in zend_signal_register()
293 if ((sa.sa_flags & SA_SIGINFO) && sa.sa_sigaction == handler) { in zend_signal_register()
299 SIGG(handlers)[signo-1].handler = (void *)sa.sa_sigaction; in zend_signal_register()
301 SIGG(handlers)[signo-1].handler = (void *)sa.sa_handler; in zend_signal_register()
305 sa.sa_sigaction = handler; in zend_signal_register()
401 global_orig_handlers[signo-1].handler = (void *) sa.sa_sigaction; in zend_signal_init()
403 global_orig_handlers[signo-1].handler = (void *) sa.sa_handler; in zend_signal_init()