patch: fix WSARecv invocation; report WSA errors

2012-05-11 Thread Denis Bilenko
WSARecv() sometimes fails with WSAEFAULT if lpFlags parameter is zero. See comment at the end of this page: http://msdn.microsoft.com/en-us/library/windows/desktop/ms741688%28v=vs.85%29.aspx The patch below fixes that. It also reports errors to stderr so that bugs like this are easier to catch in

patch for ev_loop_destroy()

2012-05-11 Thread Denis Bilenko
It looks like there's a bug in ev_loop_destroy(): when called for a non-default loop, it would stop the signal handler for SIGCHLD, even though the latter belongs to the default loop. The patched below should fix it. --- /home/denis/work/libev-cvs/ev.c 2012-05-10 20:47:37.064383729 +0400 +++ l