Skip to main content

Module cmd

Module cmd 

Source
Expand description

Thin wrapper around std::process::Command / tokio::process::Command that attaches the binary path to any spawn error so “No such file or directory” always says which file was missing.

Traits§

CommandErrorContext
Extension trait that maps spawn errors to include the program path.
SyncCommandErrorContext
Sync version for std::process::Command.

Functions§

kill_process_group
SIGKILL the process group led by pgid, a child started with process_group(0). The group is the only handle on grandchildren, which outlive a child killed alone
raw_kill
kill(2). A negative pid addresses the process group with that id