stas                                     Tue, 12 Jul 2011 04:50:24 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=313159

Log:
MFH

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/pcntl/php_signal.c

Modified: php/php-src/branches/PHP_5_4/ext/pcntl/php_signal.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/pcntl/php_signal.c 2011-07-12 04:45:38 UTC 
(rev 313158)
+++ php/php-src/branches/PHP_5_4/ext/pcntl/php_signal.c 2011-07-12 04:50:24 UTC 
(rev 313159)
@@ -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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to