This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]