wait4

Crates.iowait4
lib.rswait4
version0.1.3
sourcesrc
created_at2021-04-12 17:26:58.946101
updated_at2021-09-02 08:29:42.421861
descriptionHigh level wait4 abstraction
homepagehttps://github.com/lu-zero/wait4-rs
repositoryhttps://github.com/lu-zero/wait4-rs
max_upload_size
id382488
size14,498
Luca Barbato (lu-zero)

documentation

README

Rust idiomatic binding to wait4

crates.io docs.rs

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 or libc::getrusage
  • Windows using winapi::um::processthreadsapi::GetProcessTimes and winapi::um::psapi::GetProcessMemoryInfo.
  • Proper documentation

License

MIT, the windows code is partially from hyperfine.

Commit count: 12

cargo fmt