value.
* fhandler_socket.cc (fhandler_socket::connect): Add false as second
parameter to wait_for_events call.
(fhandler_socket::accept): Ditto.
(fhandler_socket::send_internal): Fix typo in call to wait_for_events.
+2009-12-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler.h (fhandler_socket::wait_for_events): Drop parameter default
+ value.
+ * fhandler_socket.cc (fhandler_socket::connect): Add false as second
+ parameter to wait_for_events call.
+ (fhandler_socket::accept): Ditto.
+ (fhandler_socket::send_internal): Fix typo in call to wait_for_events.
+
2009-12-26 Eric Blake <ebb9@byu.net>
* include/pty.h (openpty, forkpty): Mark last two arguments const,
const HANDLE wsock_event () const { return wsock_evt; }
const LONG serial_number () const { return wsock_events->serial_number; }
private:
- int wait_for_events (const long event_mask, bool dontwait = false);
+ int wait_for_events (const long event_mask, bool dontwait);
void release_events ();
pid_t sec_pid;
if (!is_nonblocking ()
&& res == SOCKET_ERROR
&& WSAGetLastError () == WSAEWOULDBLOCK)
- res = wait_for_events (FD_CONNECT | FD_CLOSE);
+ res = wait_for_events (FD_CONNECT | FD_CLOSE, false);
if (!res)
err = 0;
int llen = sizeof (struct sockaddr_storage);
int res = 0;
- while (!(res = wait_for_events (FD_ACCEPT | FD_CLOSE))
+ while (!(res = wait_for_events (FD_ACCEPT | FD_CLOSE, false))
&& (res = ::accept (get_socket (), (struct sockaddr *) &lpeer, &llen))
== SOCKET_ERROR
&& WSAGetLastError () == WSAEWOULDBLOCK)
}
}
while (res && err == WSAEWOULDBLOCK
- && !(res = wait_for_events (FD_WRITE | FD_CLOSE), dontwait));
+ && !(res = wait_for_events (FD_WRITE | FD_CLOSE, dontwait)));
if (!res)
{