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

Comparing libev/ev.c (file contents):
Revision 1.201 by root, Thu Dec 27 08:00:18 2007 UTC vs.
Revision 1.204 by root, Fri Jan 18 13:45:55 2008 UTC

1166 1166
1167 while (pipe (sigpipe)) 1167 while (pipe (sigpipe))
1168 syserr ("(libev) error creating pipe"); 1168 syserr ("(libev) error creating pipe");
1169 1169
1170 siginit (EV_A); 1170 siginit (EV_A);
1171 sigcb (EV_A_ &sigev, EV_READ);
1171 } 1172 }
1172 1173
1173 postfork = 0; 1174 postfork = 0;
1174} 1175}
1175 1176
1197} 1198}
1198 1199
1199void 1200void
1200ev_loop_fork (EV_P) 1201ev_loop_fork (EV_P)
1201{ 1202{
1202 postfork = 1; 1203 postfork = 1; // must be in line with ev_default_fork
1203} 1204}
1204 1205
1205#endif 1206#endif
1206 1207
1207#if EV_MULTIPLICITY 1208#if EV_MULTIPLICITY
1271#if EV_MULTIPLICITY 1272#if EV_MULTIPLICITY
1272 struct ev_loop *loop = ev_default_loop_ptr; 1273 struct ev_loop *loop = ev_default_loop_ptr;
1273#endif 1274#endif
1274 1275
1275 if (backend) 1276 if (backend)
1276 postfork = 1; 1277 postfork = 1; // must be in line with ev_loop_fork
1277} 1278}
1278 1279
1279/*****************************************************************************/ 1280/*****************************************************************************/
1280 1281
1281void 1282void
1309{ 1310{
1310 while (timercnt && ((WT)timers [0])->at <= mn_now) 1311 while (timercnt && ((WT)timers [0])->at <= mn_now)
1311 { 1312 {
1312 ev_timer *w = (ev_timer *)timers [0]; 1313 ev_timer *w = (ev_timer *)timers [0];
1313 1314
1314 assert (("inactive timer on timer heap detected", ev_is_active (w))); 1315 /*assert (("inactive timer on timer heap detected", ev_is_active (w)));*/
1315 1316
1316 /* first reschedule or stop timer */ 1317 /* first reschedule or stop timer */
1317 if (w->repeat) 1318 if (w->repeat)
1318 { 1319 {
1319 assert (("negative ev_timer repeat value found while processing timers", w->repeat > 0.)); 1320 assert (("negative ev_timer repeat value found while processing timers", w->repeat > 0.));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines