aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-15 21:21:23 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-15 21:21:23 -0300
commit1c3e06f29ad59c084c00725bf7041c2af126b22d (patch)
treed7e983109ca171e2174216a9df44034adcc96b6c /src/main.rs
parent12af9d3ec0d55c258d10e73e8fe6a99f3c9f05ff (diff)
downloaddotwm-1c3e06f29ad59c084c00725bf7041c2af126b22d.tar.gz
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
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();
}
}