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.204 by root, Fri Jan 18 13:45:55 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
1193} 1198}
1194 1199
1195void 1200void
1196ev_loop_fork (EV_P) 1201ev_loop_fork (EV_P)
1197{ 1202{
1198 postfork = 1; 1203 postfork = 1; // must be in line with ev_default_fork
1199} 1204}
1200 1205
1201#endif 1206#endif
1202 1207
1203#if EV_MULTIPLICITY 1208#if EV_MULTIPLICITY
1267#if EV_MULTIPLICITY 1272#if EV_MULTIPLICITY
1268 struct ev_loop *loop = ev_default_loop_ptr; 1273 struct ev_loop *loop = ev_default_loop_ptr;
1269#endif 1274#endif
1270 1275
1271 if (backend) 1276 if (backend)
1272 postfork = 1; 1277 postfork = 1; // must be in line with ev_loop_fork
1273} 1278}
1274 1279
1275/*****************************************************************************/ 1280/*****************************************************************************/
1276 1281
1277void 1282void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines