diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-01-07 20:01:44 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-01-07 20:01:44 +0300 |
commit | 9614a29f17952f52bbce6f55be54523eaeea8580 (patch) | |
tree | d6f805edf6df5b28d9b1552d3b0431408873af8c | |
parent | 8be00880a0b0b5c063543000f50270dbae740236 (diff) |
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.cc | 1 |
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; } |