mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
MFH
This commit is contained in:
parent
46407e6f5e
commit
c4197dc35e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user