com php-src: - Exit debugger when hitting ctrl-c in no execution: phpdbg.c
| From: | Bob Weinand | Date: | Sat, 23 Nov 2013 17:01:14 +0000 |
| Subject: | com php-src: - Exit debugger when hitting ctrl-c in no execution: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74679@lists.php.net to get a copy of this message | ||
Commit: f62098ee273843ea9b8d1e442fe88748354d35ad
Author: Felipe Pena <felipensp@gmail.com> Sat, 23 Nov 2013 15:01:14 -0200
Parents: cf227df9571c47fa728b77c849aea607edfeccc0
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f62098ee273843ea9b8d1e442fe88748354d35ad
Log:
- Exit debugger when hitting ctrl-c in no execution
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index b252dca..00c187a 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();
}
} /* }}} */