summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-01 17:17:32 +0000
committerroot <root>2007-11-01 17:17:32 +0000
commit96c68b67a0641d167fa6422f2fd1c1f74c25a83e (patch)
tree3172b0fc5a0805d12ac4532b88a4d86e691deb43 /ev.c
parentbf87f4b5b1275a7c0963432aae670d6b19ac6e0d (diff)
created new documentation
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 1 insertions, 1 deletions
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);