summaryrefslogtreecommitdiff
path: root/phpdbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg.c')
-rw-r--r--phpdbg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 3ac0b09e88..602cc0bdda 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -942,17 +942,25 @@ 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;