We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5846b commit 01748b3Copy full SHA for 01748b3
1 file changed
src/eloop.c
@@ -993,6 +993,14 @@ eloop_run_kqueue(struct eloop *eloop, const struct timespec *ts)
993
events = ELE_READ;
994
else if (ke->filter == EVFILT_WRITE)
995
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
1004
else
1005
continue; /* assert? */
1006
if (ke->flags & EV_EOF)
0 commit comments