diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-09-15 05:48:09 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-09-15 05:48:09 +0200 |
commit | 0cb365fb98ef5d314418b7987f05530e686c0e08 (patch) | |
tree | 5073951c9b484948bbc456011d3a4ae564a246f4 /sapi/phpdbg/phpdbg.c | |
parent | bcdbd471179eccd924ef39dd43a7f84ee054c742 (diff) | |
parent | 05c73757eda452bcc43de4f5e2d80ec300e0595d (diff) | |
download | php-git-0cb365fb98ef5d314418b7987f05530e686c0e08.tar.gz |
Merge phpdbg into PHP-5.6
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-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 |