]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 254072:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Nov 2013 19:35:06 +0000 (19:35 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Nov 2013 19:35:06 +0000 (19:35 +0000)
commita1e88d16892e022ea6f41db3dd0843eef68de65c
treea1fbb41b3090fee4513e85983715297f3c3ba7fe
parent18abab05ecc730fed60b7ac80b45f94cca249049
MFC 254072:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@257760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_event.c
sys/sys/event.h