Browse Source

Fix kevent flags

develop
Damien Goutte-Gattat 8 years ago
parent
commit
1ee54ee3ef
  1. 2
      src/wait4pid.c

2
src/wait4pid.c

@ -257,7 +257,7 @@ wait4all(pid_t *pids, size_t len)
evts = xmalloc(sizeof(struct kevent) * len);
for ( i = 0; i < len; i++ ) {
EV_SET(&evts[i], pids[i], EVFILT_PROC, EV_ENABLE, NOTE_EXIT, 0, 0);
EV_SET(&evts[i], pids[i], EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, 0);
}
i = kevent(fd, evts, len, NULL, 0, 0);
free(evts);

Loading…
Cancel
Save