mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
clippy: spawned process is never 'wait()'ed on
This commit is contained in:
parent
41a3695b3f
commit
a3a4457a44
2 changed files with 9 additions and 6 deletions
|
@ -36,13 +36,14 @@ impl Target {
|
|||
Self { child }
|
||||
}
|
||||
fn send_signal(&mut self, signal: Signal) {
|
||||
Command::new("kill")
|
||||
let _ = Command::new("kill")
|
||||
.args(&[
|
||||
format!("-{}", signal as i32),
|
||||
format!("{}", self.child.id()),
|
||||
])
|
||||
.spawn()
|
||||
.expect("failed to send signal");
|
||||
.expect("failed to send signal")
|
||||
.wait();
|
||||
self.child.delay(100);
|
||||
}
|
||||
fn is_alive(&mut self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue