From: Felipe Pena Date: Sat, 23 Nov 2013 17:01:14 +0000 (-0200) Subject: - Exit debugger when hitting ctrl-c in no execution X-Git-Tag: php-5.6.0alpha1~110^2~125^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f62098ee273843ea9b8d1e442fe88748354d35ad;p=php - Exit debugger when hitting ctrl-c in no execution --- diff --git a/phpdbg.c b/phpdbg.c index b252dcadff..00c187a200 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -451,10 +451,8 @@ static inline void phpdbg_sigint_handler(int signo) /* {{{ */ PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED; } } else { - /* if we are not executing then just provide advice */ - phpdbg_writeln(EMPTY); - phpdbg_error( - "Please leave phpdbg gracefully!"); + PHPDBG_G(flags) |= PHPDBG_IS_QUITTING; + zend_bailout(); } } /* }}} */