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

Comparing libev/ev.c (file contents):
Revision 1.93 by root, Sun Nov 11 01:07:35 2007 UTC vs.
Revision 1.95 by root, Sun Nov 11 01:42:13 2007 UTC

1478 1478
1479void 1479void
1480ev_check_stop (EV_P_ struct ev_check *w) 1480ev_check_stop (EV_P_ struct ev_check *w)
1481{ 1481{
1482 ev_clear_pending (EV_A_ (W)w); 1482 ev_clear_pending (EV_A_ (W)w);
1483 if (ev_is_active (w)) 1483 if (!ev_is_active (w))
1484 return; 1484 return;
1485 1485
1486 checks [((W)w)->active - 1] = checks [--checkcnt]; 1486 checks [((W)w)->active - 1] = checks [--checkcnt];
1487 ev_stop (EV_A_ (W)w); 1487 ev_stop (EV_A_ (W)w);
1488} 1488}
1549 1549
1550void 1550void
1551ev_child_stop (EV_P_ struct ev_child *w) 1551ev_child_stop (EV_P_ struct ev_child *w)
1552{ 1552{
1553 ev_clear_pending (EV_A_ (W)w); 1553 ev_clear_pending (EV_A_ (W)w);
1554 if (ev_is_active (w)) 1554 if (!ev_is_active (w))
1555 return; 1555 return;
1556 1556
1557 wlist_del ((WL *)&childs [w->pid & (PID_HASHSIZE - 1)], (WL)w); 1557 wlist_del ((WL *)&childs [w->pid & (PID_HASHSIZE - 1)], (WL)w);
1558 ev_stop (EV_A_ (W)w); 1558 ev_stop (EV_A_ (W)w);
1559} 1559}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines