diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-14 13:04:37 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-02 10:09:17 +0200 |
commit | e98e1f92c98b7c8910c55835d8f67d0d9230cc8b (patch) | |
tree | 38bbd57505dfb421d2bf2745d3a772512026aea3 /ext/pcntl/php_signal.c | |
parent | 6462c196897b8c5ccf606b8af8de790b77799de6 (diff) | |
download | php-git-e98e1f92c98b7c8910c55835d8f67d0d9230cc8b.tar.gz |
Allow SA_RESTART for SIGALRM
If no explicit restart_syscalls is passed, default to
restart_syscalls=0 for SIGALRM only, to reduce BC impact.
Diffstat (limited to 'ext/pcntl/php_signal.c')
-rw-r--r-- | ext/pcntl/php_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c index da7881b255..93a42f45d1 100644 --- a/ext/pcntl/php_signal.c +++ b/ext/pcntl/php_signal.c @@ -41,7 +41,7 @@ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) #ifdef HAVE_STRUCT_SIGINFO_T act.sa_flags |= SA_SIGINFO; #endif - if (signo == SIGALRM || (! restart)) { + if (!restart) { #ifdef SA_INTERRUPT act.sa_flags |= SA_INTERRUPT; /* SunOS */ #endif |