diff options
author | krakjoe <joe.watkins@live.co.uk> | 2014-01-13 08:14:04 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2014-01-13 08:14:04 +0000 |
commit | 1ba3ff157e430659565e22c0f1291417306d44d1 (patch) | |
tree | 888793c05f30b13c2432ff4d9b4d8a215b6b8de9 /phpdbg.c | |
parent | 9add0e9f5ce19e9e19a0ca341cbd92c74b35bfcc (diff) | |
download | php-git-1ba3ff157e430659565e22c0f1291417306d44d1.tar.gz |
fix #46 ignore EOF
Diffstat (limited to 'phpdbg.c')
-rw-r--r-- | phpdbg.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1257,10 +1257,8 @@ phpdbg_interact: /* this must be forced */ CG(unclean_shutdown) = 0; } else { - /* local client quit console */ - CG(unclean_shutdown) = 0; - - goto phpdbg_out; + /* local consoles cannot disconnect, ignore EOF */ + PHPDBG_G(flags) &= ~PHPDBG_IS_DISCONNECTED; } } #endif @@ -1275,7 +1273,7 @@ phpdbg_interact: phpdbg_out: #ifndef _WIN32 - if (PHPDBG_G(flags) & PHPDBG_IS_DISCONNECTED) { + if ((PHPDBG_G(flags) & PHPDBG_IS_DISCONNECTED)) { PHPDBG_G(flags) &= ~PHPDBG_IS_DISCONNECTED; goto phpdbg_interact; } @@ -1324,7 +1322,7 @@ phpdbg_out: if (cleaning || remote) { goto phpdbg_main; } - + #ifdef ZTS /* bugggy */ /* tsrm_shutdown(); */ |