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

Comparing libev/ev.c (file contents):
Revision 1.38 by root, Thu Nov 1 15:21:13 2007 UTC vs.
Revision 1.39 by root, Thu Nov 1 17:17:32 2007 UTC

423 struct ev_child *w; 423 struct ev_child *w;
424 int pid, status; 424 int pid, status;
425 425
426 while ((pid = waitpid (-1, &status, WNOHANG | WUNTRACED | WCONTINUED)) != -1) 426 while ((pid = waitpid (-1, &status, WNOHANG | WUNTRACED | WCONTINUED)) != -1)
427 for (w = childs [pid & (PID_HASHSIZE - 1)]; w; w = w->next) 427 for (w = childs [pid & (PID_HASHSIZE - 1)]; w; w = w->next)
428 if (w->pid == pid || w->pid == -1) 428 if (w->pid == pid || !w->pid)
429 { 429 {
430 w->status = status; 430 w->status = status;
431 event ((W)w, EV_CHILD); 431 event ((W)w, EV_CHILD);
432 } 432 }
433} 433}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines