Skip to content

Commit 83857bb

Browse files
committed
Fix clippy::zombie_processes warning
``` error: spawned process is never `wait()`ed on --> src/reaper/signal.rs:66:25 | 66 | zombies.swap_remove(i); | ^^^^^^^^^^^^^^^^^^^^^^- help: try: `.wait()` | = note: not doing so might leave behind zombie processes = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes = note: `-D clippy::zombie-processes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::zombie_processes)]` ```
1 parent 64a9fa2 commit 83857bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reaper/signal.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl Reaper {
6363
if let Ok(None) = zombies[i].try_wait() {
6464
i += 1;
6565
} else {
66+
#[allow(clippy::zombie_processes)] // removed only when process done or errored
6667
zombies.swap_remove(i);
6768
}
6869
}

0 commit comments

Comments
 (0)