com php-src: start sigio watcher only for run and eval for now: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Tue, 21 Oct 2014 09:47:22 +0000 |
| Subject: | com php-src: start sigio watcher only for run and eval for now: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82520@lists.php.net to get a copy of this message | ||
Commit: 0f3448ef8bf7364e137ac52160c202e442bd4e52
Author: Anatol Belski <ab@php.net> Tue, 21 Oct 2014 11:46:32 +0200
Parents: 63a450281ae5d2e22cf5c28357f230f704905cb3
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0f3448ef8bf7364e137ac52160c202e442bd4e52
Log:
start sigio watcher only for run and eval for now
there myght be more needing that
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 20de859..d72b1d5 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -39,6 +39,7 @@
#include "phpdbg_lexer.h"
#include "phpdbg_parser.h"
#include "phpdbg_wait.h"
+#include "phpdbg_eol.h"
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
@@ -1205,7 +1206,8 @@ int phpdbg_interactive(zend_bool allow_async_unsafe TSRMLS_DC) /* {{{ */
phpdbg_activate_err_buf(1 TSRMLS_CC);
#ifdef PHP_WIN32
- if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE) {
+#define PARA ((phpdbg_param_t *)stack.next)->type
+ if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE && (RUN_PARAM == PARA || EVAL_PARAM ==
PARA)) {
sigio_watcher_start();
}
#endif
@@ -1234,9 +1236,10 @@ int phpdbg_interactive(zend_bool allow_async_unsafe TSRMLS_DC) /* {{{ */
phpdbg_activate_err_buf(0 TSRMLS_CC);
phpdbg_free_err_buf(TSRMLS_C);
#ifdef PHP_WIN32
- if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE) {
+ if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE && (RUN_PARAM == PARA || EVAL_PARAM ==
PARA)) {
sigio_watcher_stop();
}
+#undef PARA
#endif
}
@@ -1577,5 +1580,7 @@ PHPDBG_COMMAND(eol) /* {{{ */
phpdbg_default_switch_case();
}
+
+ return SUCCESS;
} /* }}} */