mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
error: spawned process is never `wait()`ed on
|
|
--> tests/ui/zombie_processes_fixable.rs:7:13
|
|
|
|
|
LL | let _ = Command::new("").spawn().unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 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
|
|
= note: `-D clippy::zombie-processes` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::zombie_processes)]`
|
|
|
|
error: spawned process is never `wait()`ed on
|
|
--> tests/ui/zombie_processes_fixable.rs:9:5
|
|
|
|
|
LL | Command::new("").spawn().unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 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
|
|
|
|
error: spawned process is never `wait()`ed on
|
|
--> tests/ui/zombie_processes_fixable.rs:11:5
|
|
|
|
|
LL | spawn_proc();
|
|
| ^^^^^^^^^^^^- 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
|
|
|
|
error: spawned process is never `wait()`ed on
|
|
--> tests/ui/zombie_processes_fixable.rs:17:5
|
|
|
|
|
LL | Command::new("").spawn().unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 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
|
|
|
|
error: aborting due to 4 previous errors
|
|
|