This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] select: Set exceptfd bit if fetching mailslot info fails
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 7 Jan 2016 17:02:39 -0000
- Subject: [newlib-cygwin] select: Set exceptfd bit if fetching mailslot info fails
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;
}