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)
Tue, Dec 24, 5:25 PM
Unknown Object (File)
Dec 5 2024, 6:52 PM
Unknown Object (File)
Sep 17 2024, 3:45 AM
Unknown Object (File)
Sep 7 2024, 3:15 PM
Unknown Object (File)
Sep 7 2024, 3:04 PM
Unknown Object (File)
Sep 4 2024, 7:44 AM
Unknown Object (File)
Sep 4 2024, 7:44 AM
Unknown Object (File)
Sep 4 2024, 7:44 AM
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