4 releases
0.1.3 | Sep 2, 2021 |
---|---|
0.1.2 | Aug 22, 2021 |
0.1.1 | Apr 12, 2021 |
0.1.0 | Apr 12, 2021 |
#54 in #idiomatic
152 downloads per month
Used in 2 crates
12KB
170 lines
Rust idiomatic binding to wait4
use std::process::Command;
use wait4::Wait4;
let cmd = Command::new(command);
// ...
let mut child = cmd.spawn().unwrap();
let r = child.wait4().unwrap();
Status
- Unix-like using
libc::wait4
orlibc::getrusage
- Windows using
winapi::um::processthreadsapi::GetProcessTimes
andwinapi::um::psapi::GetProcessMemoryInfo
. - Proper documentation
License
Dependencies
~220KB