Skip to content

Commit

Permalink
FreeBSD: Finish EVFILT_PROCDESC implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmarples committed Mar 18, 2021
1 parent 8a5846b commit 01748b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/eloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,14 @@ eloop_run_kqueue(struct eloop *eloop, const struct timespec *ts)
events = ELE_READ;
else if (ke->filter == EVFILT_WRITE)
events = ELE_WRITE;
#ifdef EVFILT_PROCDESC
else if (ke->filter == EVFILT_PROCDESC &&
ke->fflags & NOTE_EXIT)
/* exit status is in ke->data.
* As we default to using ppoll anyway
* we don't have to do anything with it right now. */
events = ELE_HANGUP;
#endif
else
continue; /* assert? */
if (ke->flags & EV_EOF)
Expand Down

0 comments on commit 01748b3

Please sign in to comment.