diff options
author | Stanislav Malyshev <stas@php.net> | 2011-07-12 04:50:24 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-07-12 04:50:24 +0000 |
commit | c4197dc35eac7f726523c047ebdda8de54841040 (patch) | |
tree | 2180d9d8f7e4f7587a5c6318929820d130b2614c /ext/pcntl/php_signal.c | |
parent | 46407e6f5e7ec812140e2e4273c95571832ee18d (diff) | |
download | php-git-c4197dc35eac7f726523c047ebdda8de54841040.tar.gz |
MFH
Diffstat (limited to 'ext/pcntl/php_signal.c')
-rw-r--r-- | ext/pcntl/php_signal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c index 92ec411314..f61a363df6 100644 --- a/ext/pcntl/php_signal.c +++ b/ext/pcntl/php_signal.c @@ -20,16 +20,18 @@ #include "TSRM.h" #include "php_signal.h" +#include "Zend/zend.h" +#include "Zend/zend_signal.h" /* php_signal using sigaction is derrived from Advanced Programing * in the Unix Environment by W. Richard Stevens p 298. */ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) { struct sigaction act,oact; - act.sa_handler = func; #ifdef ZEND_SIGNALS TSRMLS_FETCH(); #endif + act.sa_handler = func; if (mask_all) { sigfillset(&act.sa_mask); |