Patch php_signal_diff.log for PCNTL related Bug #77335
Patch version 2018-12-21 18:43 UTC
Return to Bug #77335 |
Download this patch
Patch Revisions:
Developer: v-yitam@microsoft.com
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c
index 32a6c55c93..161455e002 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 (signo == SIGALRM && (! restart)) {
#ifdef SA_INTERRUPT
act.sa_flags |= SA_INTERRUPT; /* SunOS */
#endif
|