forked from github-starred/komodo
comment on spawn process reaper
This commit is contained in:
@@ -202,6 +202,8 @@ pub async fn run_shell_command(
|
||||
CommandOutput::from(cmd.output().await)
|
||||
}
|
||||
|
||||
/// When running inside docker container as PID 1,
|
||||
/// need this to reap processes / prevent zombies.
|
||||
pub fn spawn_process_reaper_if_pid1() {
|
||||
if std::process::id() != 1 {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user