This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 04/14] Cygwin: FIFO: fix a thinko in listen_client_thread
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Sun, 14 Apr 2019 19:15:58 +0000
- Subject: [PATCH 04/14] Cygwin: FIFO: fix a thinko in listen_client_thread
- References: <20190414191543.3218-1-kbrown@cornell.edu>
---
winsup/cygwin/fhandler_fifo.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 258c3cf8a..764420ffd 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -362,7 +362,10 @@ fhandler_fifo::listen_client_thread ()
fifo_client_unlock ();
goto errout;
}
- /* Fall through. */
+ else
+ /* Recheck fc_handler[i].state. */
+ i--;
+ break;
case fc_connected:
w[i] = fc_handler[i].dummy_evt;
break;
--
2.17.0