Skip to content

Commit

Permalink
Merge pull request #215 from LGFae/fix-zombie-process
Browse files Browse the repository at this point in the history
wait for child swww process, to prevent zombies
  • Loading branch information
LGFae committed Feb 20, 2024
2 parents a3dc064 + 9b01a04 commit 590aed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ pub fn load(output_name: &str) -> Result<(), String> {
])
.spawn()
{
Ok(_) => Ok(()),
Ok(mut child) => match child.wait() {
Ok(_) => Ok(()),
Err(e) => Err(format!("child process failed: {e}")),
},
Err(e) => Err(format!("failed to spawn child process: {e}")),
}
}
Expand Down

0 comments on commit 590aed2

Please sign in to comment.