Permalink
Browse files

Fix bug #111 (compile error without ZEND_SIGNALS)

  • Loading branch information...
bwoebi committed Sep 14, 2014
1 parent 6464b3f commit 05c73757eda452bcc43de4f5e2d80ec300e0595d
Showing with 5 additions and 5 deletions.
  1. +5 −5 phpdbg.c
@@ -1296,14 +1296,14 @@ int main(int argc, char **argv) /* {{{ */

/* do not install sigint handlers for remote consoles */
/* sending SIGINT then provides a decent way of shutting down the server */
#if defined(ZEND_SIGNALS) && !defined(_WIN32)
if (listen[0] < 0) {
zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
}
#elif !defined(_WIN32)
#ifndef _WIN32
if (listen[0] < 0) {
#endif
#if defined(ZEND_SIGNALS) && !defined(_WIN32)
zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
#else
signal(SIGINT, phpdbg_sigint_handler);
#endif
#ifndef _WIN32
}
#endif

0 comments on commit 05c7375

Please sign in to comment.