HomeFreeBSD

PT_ATTACH: do not interrupt interruptible sleeps

Description

PT_ATTACH: do not interrupt interruptible sleeps

Handle the first SIGSTOP from the PT_ATTACH specially: instead of waking
up some thread in the target process, execute sig_suspend_threads() in
the debugger. This is equivalent to the action of the xthread, except
that all threads are suspended without interruption.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D49678

Details

Provenance
kibAuthored on Apr 16 2025, 12:09 AM
Reviewer
markj
Differential Revision
D49678: PT_ATTACH: do not interrupt interruptible sleeps
Parents
rG4048ccc6ae37: kern_sig.c: extract the first stop handling into a helper
Branches
Unknown
Tags
Unknown