ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.199 by root, Tue Dec 25 07:05:45 2007 UTC vs.
Revision 1.203 by root, Fri Jan 18 11:31:02 2008 UTC

600 600
601#if EV_SELECT_IS_WINSOCKET 601#if EV_SELECT_IS_WINSOCKET
602 if (events) 602 if (events)
603 { 603 {
604 unsigned long argp; 604 unsigned long argp;
605 #ifdef EV_FD_TO_WIN32_HANDLE
606 anfd->handle = EV_FD_TO_WIN32_HANDLE (fd);
607 #else
605 anfd->handle = _get_osfhandle (fd); 608 anfd->handle = _get_osfhandle (fd);
609 #endif
606 assert (("libev only supports socket fds in this configuration", ioctlsocket (anfd->handle, FIONREAD, &argp) == 0)); 610 assert (("libev only supports socket fds in this configuration", ioctlsocket (anfd->handle, FIONREAD, &argp) == 0));
607 } 611 }
608#endif 612#endif
609 613
610 { 614 {
1162 1166
1163 while (pipe (sigpipe)) 1167 while (pipe (sigpipe))
1164 syserr ("(libev) error creating pipe"); 1168 syserr ("(libev) error creating pipe");
1165 1169
1166 siginit (EV_A); 1170 siginit (EV_A);
1171 sigcb (EV_A_ &sigev, EV_READ);
1167 } 1172 }
1168 1173
1169 postfork = 0; 1174 postfork = 0;
1170} 1175}
1171 1176

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines