summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcannotate/pmcannotate.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-07-01 20:11:28 +0000
committerkib <kib@FreeBSD.org>2016-07-01 20:11:28 +0000
commit38d067a31706492a841ac90deadd02dd8a32550f (patch)
tree39ba769f0f63aca0e41293151cdca1ae773443c7 /usr.sbin/pmcannotate/pmcannotate.c
parentd6284376d0056d19f7afc9a9fd10b82bcd82e379 (diff)
downloadFreeBSD-src-38d067a31706492a841ac90deadd02dd8a32550f.zip
FreeBSD-src-38d067a31706492a841ac90deadd02dd8a32550f.tar.gz
When a process knote was attached to the process which is already exiting,
the knote is activated immediately. If the exit1() later activates knotes, such knote is attempted to be activated second time. Detect the condition by zeroed kn_ptr.p_proc pointer, and avoid excessive activation. Before r302235, such knotes were removed from the knlist immediately upon activation. Reported by: truckman Sponsored by: The FreeBSD Foundation Approved by: re (gjb)
Diffstat (limited to 'usr.sbin/pmcannotate/pmcannotate.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud