https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4ecea14a5800e2f134f6e61d4eb8720982782a43
commit 4ecea14a5800e2f134f6e61d4eb8720982782a43 Author: Ken Brown <[email protected]> Date: Sat Apr 20 11:44:01 2019 -0400 Cygwin: FIFO: stop the listen_client thread on an opening error Don't just close the thread handle. Diff: --- winsup/cygwin/fhandler_fifo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index bc9c239..409144f 100644 --- a/winsup/cygwin/fhandler_fifo.cc +++ b/winsup/cygwin/fhandler_fifo.cc @@ -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;
