Skip to content

Commit

Permalink
MFH
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Jul 12, 2011
1 parent 46407e6 commit c4197dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/pcntl/php_signal.c
Expand Up @@ -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);
Expand Down

0 comments on commit c4197dc

Please sign in to comment.