This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 1/5] Cygwin: FIFO: stop the listen_client thread on an opening error
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Sat, 20 Apr 2019 18:58:48 +0000
- Subject: [PATCH 1/5] Cygwin: FIFO: stop the listen_client thread on an opening error
- References: <20190420185834.4228-1-kbrown@cornell.edu>
Don't just close the thread handle.
---
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 bc9c23998..409144fda 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;
--
2.17.0