ptrace_attach_from_state

Function ptrace_attach_from_state 

Source
pub fn ptrace_attach_from_state<L>(
    locked: &mut Locked<L>,
    tracee_task: &OwnedRef<Task>,
    ptrace_state: PtraceCoreState,
) -> Result<(), Errno>
Expand description

Uses the given core ptrace state (including tracer, attach type, etc) to attach to another task, given by tracee_task. Also sends a signal to stop tracee_task. Typical for when inheriting ptrace state from another task.