Skip to content

Commit 351a0ac

Browse files
committed
fix sigint
1 parent 97424c4 commit 351a0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpdbg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ static inline void phpdbg_sigint_handler(int signo) /* {{{ */
446446
TSRMLS_FETCH();
447447

448448
if (EG(in_execution)) {
449-
/* we don't want to set signalled while phpdbg is not interactive */
450-
if (PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE) {
449+
/* set signalled only when not interactive */
450+
if (!(PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE)) {
451451
PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED;
452452
}
453453
} else {

0 commit comments

Comments
 (0)