diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2016-01-28 20:24:15 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2016-01-28 20:24:15 +0000 |
commit | f8f3d276732e67c4809fe64ee9822d10356a156a (patch) | |
tree | 7c654f59e38b6168e9caa7da4b7ba4a64a44c2c4 /sys/sys/event.h | |
parent | f91c9c279859e792ca6fea3a5d5a9074b72c0e44 (diff) | |
download | FreeBSD-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.h | 1 |
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 */ |