Browse Source

Fix kevent flags

develop
Damien Goutte-Gattat 7 years ago
parent
commit
1ee54ee3ef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/wait4pid.c

+ 1
- 1
src/wait4pid.c View File

@ -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