X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/9d89dd06da51b0e009e9be53da50836e7dc7408c..f279f2b7372a6523b4055dea41bc75e0a3d7b253:/ev.c diff --git a/ev.c b/ev.c index bdb3d19..d024017 100644 --- a/ev.c +++ b/ev.c @@ -602,7 +602,11 @@ fd_reify (EV_P) 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 @@ -1164,6 +1168,7 @@ loop_fork (EV_P) syserr ("(libev) error creating pipe"); siginit (EV_A); + sigcb (EV_A_ &sigev, EV_READ); } postfork = 0; @@ -1195,7 +1200,7 @@ ev_loop_destroy (EV_P) void ev_loop_fork (EV_P) { - postfork = 1; + postfork = 1; // must be in line with ev_default_fork } #endif @@ -1269,7 +1274,7 @@ ev_default_fork (void) #endif if (backend) - postfork = 1; + postfork = 1; // must be in line with ev_loop_fork } /*****************************************************************************/