summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-01-07 18:01:44 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-01-07 18:01:44 +0100
commit9614a29f17952f52bbce6f55be54523eaeea8580 (patch)
treed6f805edf6df5b28d9b1552d3b0431408873af8c
parent8be00880a0b0b5c063543000f50270dbae740236 (diff)
downloadcygnal-9614a29f17952f52bbce6f55be54523eaeea8580.tar.gz
cygnal-9614a29f17952f52bbce6f55be54523eaeea8580.tar.bz2
cygnal-9614a29f17952f52bbce6f55be54523eaeea8580.zip
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>
-rw-r--r--winsup/cygwin/select.cc1
1 files changed, 1 insertions, 0 deletions
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;
}