CommandPtraceSpawn

Trait CommandPtraceSpawn 

Source
pub trait CommandPtraceSpawn {
    // Required method
    fn spawn_ptrace(&mut self) -> Result<Child>;
}
Expand description

A Unix-specific extension to std::process::Command to spawn a process with ptrace enabled.

See the crate-level documentation for an example.

Required Methods§

Source

fn spawn_ptrace(&mut self) -> Result<Child>

Executes the command as a child process, also enabling ptrace on it.

The child process will be stopped with a SIGTRAP calling exec to execute the specified command. You can continue it with PTRACE_CONT.

Implementations on Foreign Types§

Source§

impl CommandPtraceSpawn for Command

Implementors§