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>
This commit is contained in:
Corinna Vinschen 2016-01-07 18:01:44 +01:00
parent 8be00880a0
commit 9614a29f17

View File

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