From 1c3e06f29ad59c084c00725bf7041c2af126b22d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 15 Nov 2015 21:21:23 -0300 Subject: Clean of zombie process. The spawn of process within the exec_cmd function now are handled by a new function (collect_zombies). For reference, this code was taken from the _zombie_ crate. --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 02df6fd..4a0c545 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ pub mod dotwm; pub mod event; use dotwm::DotWM; -use command::exec_cmd; +use command::{exec_cmd,collect_zombies}; use event::{Event,next_event}; use safe_x11::grab_key; @@ -157,5 +157,6 @@ fn main() { }, _ => (), } + collect_zombies(); } } -- cgit v1.2.3-54-g00ecf