Page MenuHomeFreeBSD

Pull the PT_ATTACH case out of the 'sendsig:' block.
ClosedPublic

Authored by jhb on Nov 13 2017, 8:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 21, 5:41 AM
Unknown Object (File)
Fri, Nov 21, 5:40 AM
Unknown Object (File)
Fri, Nov 21, 5:39 AM
Unknown Object (File)
Fri, Nov 21, 5:33 AM
Unknown Object (File)
Thu, Nov 13, 3:58 AM
Unknown Object (File)
Nov 5 2025, 4:20 PM
Unknown Object (File)
Nov 5 2025, 4:20 PM
Unknown Object (File)
Nov 5 2025, 4:20 PM
Subscribers

Details

Summary

Most of the conditionals in the 'sendsig:' block are now only different
for PT_ATTACH vs other continue requests. Pull the PT_ATTACH-specific
logic up into the PT_ATTACH case and simplify the 'sendsig:' block. This
also permits moving the unlock of proctree_lock above the sendsig: label
since PT_KILL doesn't hold the lock and and the other cases all fall
through to the label.

Test Plan
  • run the kyua ptrace tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable