From 333264fdb718f337fb19d208e3d41aeef31f2ca1 Mon Sep 17 00:00:00 2001 From: cyanogenmod Date: Mon, 13 Jan 2014 08:11:09 +0000 Subject: fix #46 ignore EOF --- phpdbg.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'phpdbg.c') diff --git a/phpdbg.c b/phpdbg.c index 1ada36c7a1..c631d8f3c3 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -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(); */ -- cgit v1.2.1