1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00

fix windows build

This commit is contained in:
krakjoe
2013-12-01 08:55:37 +00:00
parent 2c216ec648
commit d76e24b2db

View File

@@ -942,16 +942,24 @@ phpdbg_main:
/* do not install sigint handlers for remote consoles */
/* sending SIGINT then provides a decent way of shutting down the server */
#ifdef ZEND_SIGNALS
# ifndef _WIN32
if (listen[0] < 0) {
# endif
zend_try {
zend_signal_activate(TSRMLS_C);
zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC);
} zend_end_try();
# ifndef _WIN32
}
# endif
#else
# ifndef _WIN32
if (listen[0] < 0) {
# endif
signal(SIGINT, phpdbg_sigint_handler);
#ifndef _WIN32
}
#endif
#endif
PG(modules_activated) = 0;