Skip to content

Commit 01748b3

Browse files
committed
FreeBSD: Finish EVFILT_PROCDESC implementation.
1 parent 8a5846b commit 01748b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/eloop.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,14 @@ eloop_run_kqueue(struct eloop *eloop, const struct timespec *ts)
993993
events = ELE_READ;
994994
else if (ke->filter == EVFILT_WRITE)
995995
events = ELE_WRITE;
996+
#ifdef EVFILT_PROCDESC
997+
else if (ke->filter == EVFILT_PROCDESC &&
998+
ke->fflags & NOTE_EXIT)
999+
/* exit status is in ke->data.
1000+
* As we default to using ppoll anyway
1001+
* we don't have to do anything with it right now. */
1002+
events = ELE_HANGUP;
1003+
#endif
9961004
else
9971005
continue; /* assert? */
9981006
if (ke->flags & EV_EOF)

0 commit comments

Comments
 (0)