Lines Matching refs:SIGG
100 if (EXPECTED(SIGG(active))) { in zend_signal_handler_defer()
101 if (UNEXPECTED(SIGG(depth) == 0)) { /* try to handle signal */ in zend_signal_handler_defer()
102 if (UNEXPECTED(SIGG(blocked))) { in zend_signal_handler_defer()
103 SIGG(blocked) = 0; in zend_signal_handler_defer()
105 if (EXPECTED(SIGG(running) == 0)) { in zend_signal_handler_defer()
106 SIGG(running) = 1; in zend_signal_handler_defer()
109 queue = SIGG(phead); in zend_signal_handler_defer()
110 SIGG(phead) = NULL; in zend_signal_handler_defer()
115 queue->next = SIGG(pavail); in zend_signal_handler_defer()
117 SIGG(pavail) = queue; in zend_signal_handler_defer()
120 SIGG(running) = 0; in zend_signal_handler_defer()
123 SIGG(blocked) = 1; /* signal is blocked */ in zend_signal_handler_defer()
125 if ((queue = SIGG(pavail))) { /* if none available it's simply forgotten */ in zend_signal_handler_defer()
126 SIGG(pavail) = queue->next; in zend_signal_handler_defer()
132 if (SIGG(phead) && SIGG(ptail)) { in zend_signal_handler_defer()
133 SIGG(ptail)->next = queue; in zend_signal_handler_defer()
135 SIGG(phead) = queue; in zend_signal_handler_defer()
137 SIGG(ptail) = queue; in zend_signal_handler_defer()
160 if (EXPECTED(SIGG(active))) { in zend_signal_handler_unblock()
162 queue = SIGG(phead); in zend_signal_handler_unblock()
163 SIGG(phead) = queue->next; in zend_signal_handler_unblock()
165 queue->next = SIGG(pavail); in zend_signal_handler_unblock()
167 SIGG(pavail) = queue; in zend_signal_handler_unblock()
189 p_sig = SIGG(handlers)[signo-1]; in zend_signal_handler()
216 SIGG(handlers)[signo-1].flags = 0; in zend_signal_handler()
217 SIGG(handlers)[signo-1].handler = SIG_DFL; in zend_signal_handler()
236 oldact->sa_flags = SIGG(handlers)[signo-1].flags; in zend_sigaction()
237 oldact->sa_handler = (void *) SIGG(handlers)[signo-1].handler; in zend_sigaction()
241 SIGG(handlers)[signo-1].flags = act->sa_flags; 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()
297 SIGG(handlers)[signo-1].flags = sa.sa_flags; 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()
323 memcpy(&SIGG(handlers), &global_orig_handlers, sizeof(global_orig_handlers)); in zend_signal_activate()
325 if (SIGG(reset)) { in zend_signal_activate()
331 SIGG(active) = 1; in zend_signal_activate()
332 SIGG(depth) = 0; in zend_signal_activate()
338 if (SIGG(check)) { in zend_signal_deactivate()
342 if (SIGG(depth) != 0) { in zend_signal_deactivate()
343 …zend_error(E_CORE_WARNING, "zend_signal: shutdown with non-zero blocking depth (%d)", SIGG(depth)); in zend_signal_deactivate()
358 *((volatile int *) &SIGG(active)) = 0; in zend_signal_deactivate()
360 SIGG(running) = 0; in zend_signal_deactivate()
361 SIGG(blocked) = 0; in zend_signal_deactivate()
362 SIGG(depth) = 0; in zend_signal_deactivate()
365 if (SIGG(phead) && SIGG(ptail)) { in zend_signal_deactivate()
366 SIGG(ptail)->next = SIGG(pavail); in zend_signal_deactivate()
367 SIGG(pavail) = SIGG(phead); in zend_signal_deactivate()
368 SIGG(phead) = NULL; in zend_signal_deactivate()
369 SIGG(ptail) = NULL; in zend_signal_deactivate()