[newlib-cygwin] select: Set exceptfd bit if fetching mailslot info fails
Corinna Vinschen
corinna@sourceware.org
Thu Jan 7 17:02:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9614a29f17952f52bbce6f55be54523eaeea8580
commit 9614a29f17952f52bbce6f55be54523eaeea8580
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Jan 7 18:01:44 2016 +0100
select: Set exceptfd bit if fetching mailslot info fails
* select.cc (peek_mailslot): Set except_ready if GetMailslotInfo fails.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/select.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 05d361c..524e578 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;
}
More information about the Cygwin-cvs
mailing list