Crates.io | wait4 |
lib.rs | wait4 |
version | 0.1.3 |
source | src |
created_at | 2021-04-12 17:26:58.946101 |
updated_at | 2021-09-02 08:29:42.421861 |
description | High level wait4 abstraction |
homepage | https://github.com/lu-zero/wait4-rs |
repository | https://github.com/lu-zero/wait4-rs |
max_upload_size | |
id | 382488 |
size | 14,498 |
use std::process::Command;
use wait4::Wait4;
let cmd = Command::new(command);
// ...
let mut child = cmd.spawn().unwrap();
let r = child.wait4().unwrap();
libc::wait4
or libc::getrusage
winapi::um::processthreadsapi::GetProcessTimes
and winapi::um::psapi::GetProcessMemoryInfo
.