HomeFreeBSD

Don't clear p_ptevents on normal SIGKILL delivery

Description

Don't clear p_ptevents on normal SIGKILL delivery

The ptrace() user has the option of discarding the signal. In such a
case, p_ptevents should not be modified. If the ptrace() user decides to
send a SIGKILL, ptevents will be cleared in ptracestop(). procfs events
do not have the capability to discard the signal, so continue to clear
the mask in that case.

Reviewed by: jhb (initial revision)
MFC after: 1 week
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D9939

Details

Provenance
badgerAuthored on
Reviewer
jhb
Differential Revision
D9939: Don't clear p_ptevents on normal SIGKILL delivery
Parents
rS315411: Unbreak traceroute on system built without CAPSICUM
Branches
Unknown
Tags
Unknown