mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
restart listening on socket
if remote sent somthing else than ctrl+c while performing something blocking
This commit is contained in:
parent
b8368a7bcf
commit
d7229b2bb6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user