com php-src: fix sigint: phpdbg.c
| From: | Bob Weinand | Date: | Sat, 23 Nov 2013 17:01:18 +0000 |
| Subject: | com php-src: fix sigint: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74680@lists.php.net to get a copy of this message | ||
Commit: 351a0ac761f2308097c40e5d495b44b591a990c7
Author: krakjoe <joe.watkins@live.co.uk> Sat, 23 Nov 2013 17:01:18 +0000
Parents: 97424c4bb94b51e1f0f14e8f035b69ec0c966780
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=351a0ac761f2308097c40e5d495b44b591a990c7
Log:
fix sigint
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 00c187a...e5aee66 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -446,8 +446,8 @@ static inline void phpdbg_sigint_handler(int signo) /* {{{ */
TSRMLS_FETCH();
if (EG(in_execution)) {
- /* we don't want to set signalled while phpdbg is not interactive */
- if (PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE) {
+ /* set signalled only when not interactive */
+ if (!(PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE)) {
PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED;
}
} else {