comment on spawn process reaper

This commit is contained in:
mbecker20
2025-10-27 01:41:06 -07:00
parent 521db748d8
commit 3171c14f2b

View File

@@ -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;