com php-src: restart listening on socket: phpdbg_sigio_win 32.c

From: Date: Tue, 21 Oct 2014 14:56:06 +0000
Subject: com php-src: restart listening on socket: phpdbg_sigio_win 32.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82513@lists.php.net to get a copy of this message
Commit: d7229b2bb6f420d86a07165876179bcdbaa6a9cf Author: Anatol Belski <ab@php.net> Tue, 21 Oct 2014 16:56:06 +0200 Parents: b8368a7bcf2490ff119dcc2dafab8787e766efd4 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7229b2bb6f420d86a07165876179bcdbaa6a9cf Log: restart listening on socket if remote sent somthing else than ctrl+c while performing something blocking Changed paths: M phpdbg_sigio_win32.c Diff: diff --git a/phpdbg_sigio_win32.c b/phpdbg_sigio_win32.c index b10f2a3..24e9ac0 100644 --- a/phpdbg_sigio_win32.c +++ b/phpdbg_sigio_win32.c @@ -33,8 +33,10 @@ SigIoWatcherThread(VOID *p) struct win32_sigio_watcher_data *swd = (struct win32_sigio_watcher_data *)p; #ifdef ZTS void ***tsrm_ls = swd->tsrm_ls; +top: (void)phpdbg_consume_bytes(swd->fd, &sig, 1, -1, tsrm_ls); #else +top: (void)phpdbg_consume_bytes(swd->fd, &sig, 1, -1); #endif @@ -57,6 +59,8 @@ SigIoWatcherThread(VOID *p) } /* XXX set signaled flag to the caller thread, question is - whether it's needed */ ExitThread(sig); + } else { + goto top; } }

« previous php.cvs (#82513) next »