From 9614a29f17952f52bbce6f55be54523eaeea8580 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 7 Jan 2016 18:01:44 +0100 Subject: [PATCH] select: Set exceptfd bit if fetching mailslot info fails * select.cc (peek_mailslot): Set except_ready if GetMailslotInfo fails. Signed-off-by: Corinna Vinschen --- winsup/cygwin/select.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 05d361cd4..524e578ae 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -1631,6 +1631,7 @@ peek_mailslot (select_record *me, bool) DWORD msgcnt = 0; if (!GetMailslotInfo (h, NULL, NULL, &msgcnt, NULL)) { + me->except_ready = true; select_printf ("mailslot %d(%p) error %E", me->fd, h); return 1; }