summaryrefslogtreecommitdiff
path: root/init/src/services/units.rs
diff options
context:
space:
mode:
Diffstat (limited to 'init/src/services/units.rs')
-rw-r--r--init/src/services/units.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/src/services/units.rs b/init/src/services/units.rs
index ffb7900..316a15e 100644
--- a/init/src/services/units.rs
+++ b/init/src/services/units.rs
@@ -139,7 +139,7 @@ pub fn services_mainloop() -> Result<(), Box<dyn std::error::Error + Send>> {
));
// Stops other runlevel services
- pids.retain(|(child, exec, _, _)| {
+ pids.retain_mut(|(child, exec, _, _)| {
// TODO: Correct stop with SIGTERM + timeout
match child.try_wait() {
Ok(Some(_)) => {