Lines Matching refs:PCNTL_G

493 	zend_hash_init(&PCNTL_G(php_signal_table), 16, NULL, ZVAL_PTR_DTOR, 0);  in PHP_RINIT_FUNCTION()
494 PCNTL_G(head) = PCNTL_G(tail) = PCNTL_G(spares) = NULL; in PHP_RINIT_FUNCTION()
518 zend_hash_destroy(&PCNTL_G(php_signal_table)); in PHP_RSHUTDOWN_FUNCTION()
519 while (PCNTL_G(head)) { in PHP_RSHUTDOWN_FUNCTION()
520 sig = PCNTL_G(head); in PHP_RSHUTDOWN_FUNCTION()
521 PCNTL_G(head) = sig->next; in PHP_RSHUTDOWN_FUNCTION()
524 while (PCNTL_G(spares)) { in PHP_RSHUTDOWN_FUNCTION()
525 sig = PCNTL_G(spares); in PHP_RSHUTDOWN_FUNCTION()
526 PCNTL_G(spares) = sig->next; in PHP_RSHUTDOWN_FUNCTION()
547 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
587 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
622 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
818 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
828 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
852 if (!PCNTL_G(spares)) { in PHP_FUNCTION()
860 psig->next = PCNTL_G(spares); in PHP_FUNCTION()
861 PCNTL_G(spares) = psig; in PHP_FUNCTION()
871 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
879 PCNTL_G(last_error) = EINVAL; in PHP_FUNCTION()
887 …zend_hash_index_update(&PCNTL_G(php_signal_table), signo, (void **) &handle, sizeof(zval *), (void… in PHP_FUNCTION()
891 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
923 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
937 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
945 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
992 PCNTL_G(last_error) = errno; in pcntl_sigwaitinfo()
1006 PCNTL_G(last_error) = errno; in pcntl_sigwaitinfo()
1021 PCNTL_G(last_error) = errno; in pcntl_sigwaitinfo()
1115 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
1149 PCNTL_G(last_error) = errno; in PHP_FUNCTION()
1179 RETURN_LONG(PCNTL_G(last_error)); in PHP_FUNCTION()
1203 psig = PCNTL_G(spares); in pcntl_signal_handler()
1208 PCNTL_G(spares) = psig->next; in pcntl_signal_handler()
1215 if (PCNTL_G(head) && PCNTL_G(tail)) { in pcntl_signal_handler()
1216 PCNTL_G(tail)->next = psig; in pcntl_signal_handler()
1218 PCNTL_G(head) = psig; in pcntl_signal_handler()
1220 PCNTL_G(tail) = psig; in pcntl_signal_handler()
1236 if (! PCNTL_G(head) || PCNTL_G(processing_signal_queue)) { in pcntl_signal_dispatch()
1242 PCNTL_G(processing_signal_queue) = 1; in pcntl_signal_dispatch()
1244 queue = PCNTL_G(head); in pcntl_signal_dispatch()
1245 PCNTL_G(head) = NULL; /* simple stores are atomic */ in pcntl_signal_dispatch()
1250 if (zend_hash_index_find(&PCNTL_G(php_signal_table), queue->signo, (void **) &handle)==SUCCESS) { in pcntl_signal_dispatch()
1264 queue->next = PCNTL_G(spares); in pcntl_signal_dispatch()
1265 PCNTL_G(spares) = queue; in pcntl_signal_dispatch()
1270 PCNTL_G(processing_signal_queue) = 0; in pcntl_signal_dispatch()