diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-20 14:58:42 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-20 14:58:42 +0300 |
commit | c8706331b5511397bee28c676d98672383222f2f (patch) | |
tree | b6b69b067b396d08f03f7a213d2b6bde89cc1ad9 /ext/pcntl/php_signal.c | |
parent | 3abd9c34c1e7249db92014a82b4430393c53928c (diff) | |
download | php-git-c8706331b5511397bee28c676d98672383222f2f.tar.gz |
Cleanup zend_signal API
Diffstat (limited to 'ext/pcntl/php_signal.c')
-rw-r--r-- | ext/pcntl/php_signal.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c index 7aa5d5a7c1..a18e641d2a 100644 --- a/ext/pcntl/php_signal.c +++ b/ext/pcntl/php_signal.c @@ -28,8 +28,7 @@ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) { struct sigaction act,oact; -#ifdef ZEND_SIGNALS -#endif + act.sa_handler = func; if (mask_all) { sigfillset(&act.sa_mask); @@ -46,12 +45,7 @@ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) act.sa_flags |= SA_RESTART; /* SVR4, 4.3+BSD */ #endif } -#ifdef ZEND_SIGNALS - if (zend_sigaction(signo, &act, &oact) < 0) -#else - if (sigaction(signo, &act, &oact) < 0) -#endif - { + if (zend_sigaction(signo, &act, &oact) < 0) { return SIG_ERR; } |