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:
parent
8be00880a0
commit
9614a29f17
@ -1631,6 +1631,7 @@ peek_mailslot (select_record *me, bool)
|
|||||||
DWORD msgcnt = 0;
|
DWORD msgcnt = 0;
|
||||||
if (!GetMailslotInfo (h, NULL, NULL, &msgcnt, NULL))
|
if (!GetMailslotInfo (h, NULL, NULL, &msgcnt, NULL))
|
||||||
{
|
{
|
||||||
|
me->except_ready = true;
|
||||||
select_printf ("mailslot %d(%p) error %E", me->fd, h);
|
select_printf ("mailslot %d(%p) error %E", me->fd, h);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user