From 96c68b67a0641d167fa6422f2fd1c1f74c25a83e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Nov 2007 17:17:32 +0000 Subject: created new documentation --- ev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ev.c') diff --git a/ev.c b/ev.c index ce730b5..46c8cea 100644 --- a/ev.c +++ b/ev.c @@ -425,7 +425,7 @@ childcb (struct ev_signal *sw, int revents) while ((pid = waitpid (-1, &status, WNOHANG | WUNTRACED | WCONTINUED)) != -1) for (w = childs [pid & (PID_HASHSIZE - 1)]; w; w = w->next) - if (w->pid == pid || w->pid == -1) + if (w->pid == pid || !w->pid) { w->status = status; event ((W)w, EV_CHILD); -- cgit v1.2.3