summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2019-04-20 11:44:01 -0400
committerKen Brown <kbrown@cornell.edu>2019-04-20 14:31:07 -0400
commit4ecea14a5800e2f134f6e61d4eb8720982782a43 (patch)
treee59687a8b52d35bcc925bdf5988ce428dfe7c865
parent28182bca18bc2774641ca06620274a9b24e633e1 (diff)
downloadcygnal-4ecea14a5800e2f134f6e61d4eb8720982782a43.tar.gz
cygnal-4ecea14a5800e2f134f6e61d4eb8720982782a43.tar.bz2
cygnal-4ecea14a5800e2f134f6e61d4eb8720982782a43.zip
Cygwin: FIFO: stop the listen_client thread on an opening error
Don't just close the thread handle.
-rw-r--r--winsup/cygwin/fhandler_fifo.cc2
1 files changed, 1 insertions, 1 deletions
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;