diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-09-14 12:24:56 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2014-09-15 15:12:54 +0200 |
commit | 2f57d19f764b2680c29d5d00a771e674af0e4e88 (patch) | |
tree | 9f5aa6a760c0a7bf6f59cd48cc3f5a2433058972 | |
parent | 78e8b1511c577e85d2160eeaf7f2d6e8f1d6503b (diff) | |
download | php-git-2f57d19f764b2680c29d5d00a771e674af0e4e88.tar.gz |
Fix bug #111 (compile error without ZEND_SIGNALS)
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 1fbd18a423..c881559e6e 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1296,14 +1296,14 @@ phpdbg_main: /* 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 |