]> granicus.if.org Git - php/commitdiff
restart listening on socket
authorAnatol Belski <ab@php.net>
Tue, 21 Oct 2014 14:56:06 +0000 (16:56 +0200)
committerAnatol Belski <ab@php.net>
Tue, 21 Oct 2014 14:56:06 +0000 (16:56 +0200)
if remote sent somthing else than ctrl+c while performing something blocking

phpdbg_sigio_win32.c

index b10f2a352ccc12ece259801c20cc8a5a9e8bd1a3..24e9ac0e0aacdceacd0b9577ca1e99c2f59dc880 100644 (file)
@@ -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;
        }
 }