Skip to content

Commit 7cc1b00

Browse files
committed
Improved support for zend-signals.
1 parent 4943f0b commit 7cc1b00

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

sapi/cgi/cgi_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,7 @@ consult the installation file that came with this distribution, or visit \n\
20662066
sigaction(SIGTERM, &old_term, 0);
20672067
sigaction(SIGQUIT, &old_quit, 0);
20682068
sigaction(SIGINT, &old_int, 0);
2069+
zend_signal_init();
20692070
break;
20702071
case -1:
20712072
perror("php (pre-forking)");
@@ -2105,6 +2106,7 @@ consult the installation file that came with this distribution, or visit \n\
21052106
}
21062107
} else {
21072108
parent = 0;
2109+
zend_signal_init();
21082110
}
21092111

21102112
#else

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,6 +2548,7 @@ int do_cli_server(int argc, char **argv) /* {{{ */
25482548

25492549
#if defined(HAVE_SIGNAL_H) && defined(SIGINT)
25502550
signal(SIGINT, php_cli_server_sigint_handler);
2551+
zend_signal_init();
25512552
#endif
25522553
php_cli_server_do_event_loop(&server);
25532554
php_cli_server_dtor(&server);

0 commit comments

Comments
 (0)