]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix race between a process registering a NOTE_EXIT EVFILT_PROC event and
authorKelly Yancey <kbyanc@FreeBSD.org>
Sat, 12 Apr 2003 01:57:04 +0000 (01:57 +0000)
committerKelly Yancey <kbyanc@FreeBSD.org>
Sat, 12 Apr 2003 01:57:04 +0000 (01:57 +0000)
commitf563420e8d6ba16496d77c45b12caa5ac0dd0c39
tree09e25608421bb59b58f9e2dfab50824c34967e78
parent86711bae9bef816287b0be4b3c756f5acf354158
Fix race between a process registering a NOTE_EXIT EVFILT_PROC event and
the target process exiting which causes attempts to register the kevent
to randomly fail depending on whether the target runs to completion before
the parent can call kevent(2).  The bug actually effects EVFILT_PROC
events on any zombie process, but the most common manifestation is with
parents trying to monitor child processes.

MFC after: 2 weeks
Sponsored by: NTT Multimedia Communications Labs
sys/kern/kern_event.c