Vorarbeiter, a small process supervisor
vorarbeiter::Supervisor
shuts down processes it owns on Drop
by sending a SIGTERM
first, followed by a SIGKILL
:
use process;
// The default kill timeout is 10 seconds, which is fine here.
let mut supervisor = default;
// Spawns three new child processes and adds them to the supervisor.
for _ in 0..3
// Terminate all child processes.
drop;
See the documentation for details.