Cygwin: FIFO: don't leave a pending listen request

On exit from the listen_client thread, make sure there's no pending
FSCTL_PIPE_LISTEN request.  Otherwise we might get a client connection
after restarting the thread, and we won't have a handle for
communicating with that client.

Remove the retry loop in the case of STATUS_PIPE_LISTENING; that case
shouldn't occur.

Remove the now-unused fc_connecting value from
fifo_client_connect_state.
This commit is contained in:
Ken Brown
2019-05-09 11:55:30 -04:00
parent 816c6da53a
commit c12053a793
2 changed files with 59 additions and 53 deletions

View File

@@ -1240,7 +1240,6 @@ public:
enum fifo_client_connect_state
{
fc_unknown,
fc_connecting,
fc_connected,
fc_invalid
};