spawn-ptrace 0.1.1

Spawn a process with ptrace enabled.
Documentation

Build Status crates.io

Execute a child process with ptrace enabled.

Example

extern crate spawn_ptrace;

use std::io;
use spawn_ptrace::CommandPtraceSpawn;
use std::process::Command;

fn run() -> io::Result<()> {
   let child = Command::new("/bin/ls").spawn_ptrace()?;
   // call `ptrace(PTRACE_CONT, child.id(), ...)` to continue execution
   // do other ptrace things here...
   Ok(())
}

fn main() {
  run().unwrap();
}

License

This software is provided under the MIT license. See LICENSE.