summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 7faa403..6c2f397 100644
--- a/ev.c
+++ b/ev.c
@@ -487,7 +487,8 @@ childcb (struct ev_signal *sw, int revents)
for (w = childs [pid & (PID_HASHSIZE - 1)]; w; w = w->next)
if (w->pid == pid || !w->pid)
{
- w->status = status;
+ w->rpid = pid;
+ w->rstatus = status;
event ((W)w, EV_CHILD);
}
}