mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-02 13:05:42 +08:00
* select.cc (cygwin_select): Fifth time is the charm.
This commit is contained in:
parent
9b80fa0f92
commit
8714982cef
@ -1,3 +1,7 @@
|
|||||||
|
2011-12-08 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* select.cc (cygwin_select): Fifth time is the charm.
|
||||||
|
|
||||||
2011-12-08 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-12-08 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait
|
* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait
|
||||||
|
@ -143,11 +143,14 @@ cygwin_select (int maxfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
|||||||
pthread::static_cancel_self ();
|
pthread::static_cancel_self ();
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
default:
|
default:
|
||||||
res = 0;
|
res = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ((sel.always_ready || ms == 0)
|
else if (sel.always_ready || ms == 0)
|
||||||
|| (res = sel.wait (r, w, e, ms)) >= 0)
|
res = 0;
|
||||||
|
else
|
||||||
|
res = sel.wait (r, w, e, ms);
|
||||||
|
if (res >= 0)
|
||||||
{
|
{
|
||||||
copyfd_set (readfds, r, maxfds);
|
copyfd_set (readfds, r, maxfds);
|
||||||
copyfd_set (writefds, w, maxfds);
|
copyfd_set (writefds, w, maxfds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user