if (events)
{
unsigned long argp;
- anfd->handle = _get_osfhandle (fd);
+ #ifdef EV_FD_TO_WIN32_HANDLE
+ anfd->handle = EV_FD_TO_WIN32_HANDLE (fd);
+ #else
+ anfd->handle = _get_osfhandle (fd);
+ #endif
assert (("libev only supports socket fds in this configuration", ioctlsocket (anfd->handle, FIONREAD, &argp) == 0));
}
#endif
syserr ("(libev) error creating pipe");
siginit (EV_A);
+ sigcb (EV_A_ &sigev, EV_READ);
}
postfork = 0;
void
ev_loop_fork (EV_P)
{
- postfork = 1;
+ postfork = 1; // must be in line with ev_default_fork
}
#endif
#endif
if (backend)
- postfork = 1;
+ postfork = 1; // must be in line with ev_loop_fork
}
/*****************************************************************************/