[−][src]Function vorarbeiter::shutdown_process
pub fn shutdown_process(
child: &mut Child,
kill_timeout: Duration,
poll_interval: Duration
) -> Result<ExitStatus>
Shuts down a process using SIGTERM, sending SIGKILL after timeout
.
First sends a SIGTERM
to the child process and polls it for completion every poll_interval
.
If the process does not finish within kill_timeout
, sends a SIGKILL
.