4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-02 12:30:24 +08:00

Cygwin: AF_UNIX: peek_pipe_poll: fix thinko

The variable 'sleep_time' was being reset to 0 on every loop
iteration.
This commit is contained in:
Ken Brown 2020-11-18 17:27:04 -05:00
parent 2547ad3807
commit 9e6f77d4ef

View File

@ -1168,10 +1168,10 @@ fhandler_socket_unix::peek_pipe_poll (PFILE_PIPE_PEEK_BUFFER pbuf,
HANDLE ph)
{
NTSTATUS status;
DWORD sleep_time = 0;
while (1)
{
DWORD sleep_time = 0;
DWORD waitret;
io_lock ();