summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-01-28 20:24:15 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-01-28 20:24:15 +0000
commitf8f3d276732e67c4809fe64ee9822d10356a156a (patch)
tree7c654f59e38b6168e9caa7da4b7ba4a64a44c2c4 /sys/sys/event.h
parentf91c9c279859e792ca6fea3a5d5a9074b72c0e44 (diff)
downloadFreeBSD-src-f8f3d276732e67c4809fe64ee9822d10356a156a.zip
FreeBSD-src-f8f3d276732e67c4809fe64ee9822d10356a156a.tar.gz
kqueue EVFILT_PROC: avoid collision between NOTE_CHILD and NOTE_EXIT
NOTE_CHILD and NOTE_EXIT return something in kevent.data: the parent pid (ppid) for NOTE_CHILD and the exit status for NOTE_EXIT. Do not let the two events be combined, since one would overwrite the other's data. PR: 180385 Submitted by: David A. Bright <david_a_bright@dell.com> Reviewed by: jhb MFC after: 1 month Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4900
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 0f13231..35aad99 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -80,6 +80,7 @@ struct kevent {
#define EV_SYSFLAGS 0xF000 /* reserved by system */
#define EV_DROP 0x1000 /* note should be dropped */
#define EV_FLAG1 0x2000 /* filter-specific flag */
+#define EV_FLAG2 0x4000 /* filter-specific flag */
/* returned values */
#define EV_EOF 0x8000 /* EOF detected */
OpenPOWER on IntegriCloud