summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-08-07 19:56:35 +0000
committerjhb <jhb@FreeBSD.org>2013-08-07 19:56:35 +0000
commit9481e259bba3a39043f2dff6baacf69597661b3a (patch)
treec43c186af06f67f0ae3be27b4f6ba855d17ca9f8 /sys/sys/event.h
parent8de1718b6098ce10c7adafd754331072122d1b3a (diff)
downloadFreeBSD-src-9481e259bba3a39043f2dff6baacf69597661b3a.zip
FreeBSD-src-9481e259bba3a39043f2dff6baacf69597661b3a.tar.gz
Don't emit a spurious EVFILT_PROC event with no fflags set on process exit
if NOTE_EXIT is not being monitored. The rationale is that a listener should only get an event for exit() if they registered interest via NOTE_EXIT. This matches the behavior on OS X. - Don't save the exit status on process exit unless NOTE_EXIT is being monitored. - Add an internal EV_DROP flag that requests kqueue_scan() to free the knote without signalling it to userland and use this when a process exits but the fflags in the knote is zero. Reviewed by: jmg MFC after: 1 month
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 707fbed..1066e36 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -76,6 +76,7 @@ struct kevent {
#define EV_DISPATCH 0x0080 /* disable event after reporting */
#define EV_SYSFLAGS 0xF000 /* reserved by system */
+#define EV_DROP 0x1000 /* note should be dropped */
#define EV_FLAG1 0x2000 /* filter-specific flag */
/* returned values */
OpenPOWER on IntegriCloud