4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Cygwin: FIFO: stop the listen_client thread on an opening error

Don't just close the thread handle.
This commit is contained in:
Ken Brown 2019-04-20 11:44:01 -04:00
parent 28182bca18
commit 4ecea14a58

View File

@ -563,7 +563,7 @@ out:
if (get_handle ())
CloseHandle (get_handle ());
if (listen_client_thr)
CloseHandle (listen_client_thr);
stop_listen_client ();
}
debug_printf ("res %d", res);
return res == success;