Kill the child processes at once on a second interrupt during the grace period
This commit is contained in:
+1
-1
@@ -114,6 +114,6 @@ pub fn run(config: SandboxConfig) -> Result<ExitStatus, SandboxError> {
|
||||
// bwrap ignores them: its death would SIGKILL the entrypoint through --die-with-parent.
|
||||
let bwrap_process = bwrap.spawn(signal_forwarder.ignore_forwarded_signals())?;
|
||||
let status = signal_forwarder.forward_until_exit(&bwrap_process)?;
|
||||
process_tree::terminate_and_reap_all(CLEANUP_GRACE_PERIOD)?;
|
||||
process_tree::terminate_and_reap_all(CLEANUP_GRACE_PERIOD, signals::has_pending_interrupt)?;
|
||||
Ok(status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user