]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: FIFO: stop the listen_client thread on an opening error
authorKen Brown <kbrown@cornell.edu>
Sat, 20 Apr 2019 15:44:01 +0000 (11:44 -0400)
committerKen Brown <kbrown@cornell.edu>
Sat, 20 Apr 2019 18:31:07 +0000 (14:31 -0400)
Don't just close the thread handle.

winsup/cygwin/fhandler_fifo.cc

index bc9c23998a209cb0a108f13edab17b7a994ff8a3..409144fdaf8b98cafb69c8c6a7cda7638ab1264b 100644 (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;
This page took 0.03074 seconds and 5 git commands to generate.