diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-19 01:05:27 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-19 01:05:27 -0500 |
commit | 40f4d51da8c799e3dfb525b99def8f2812689f6c (patch) | |
tree | bd9a6687b8c807792f9fcd07da7c21b75ae2f881 /src/bin/rbw/actions.rs | |
parent | d8e88421c54d2e74db2b4bd529067393cfbdbc96 (diff) | |
download | rbw-40f4d51da8c799e3dfb525b99def8f2812689f6c.tar.gz rbw-40f4d51da8c799e3dfb525b99def8f2812689f6c.zip |
clippy
Diffstat (limited to 'src/bin/rbw/actions.rs')
-rw-r--r-- | src/bin/rbw/actions.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/rbw/actions.rs b/src/bin/rbw/actions.rs index ec6ba99..75703f9 100644 --- a/src/bin/rbw/actions.rs +++ b/src/bin/rbw/actions.rs @@ -34,7 +34,7 @@ pub fn quit() -> anyhow::Result<()> { .and_then(|p| p.to_str().map(|s| s.to_string())), action: rbw::protocol::Action::Quit, })?; - wait_for_exit(pid)?; + wait_for_exit(pid); Ok(()) } Err(e) => match e.kind() { @@ -148,12 +148,11 @@ fn connect() -> anyhow::Result<crate::sock::Sock> { }) } -fn wait_for_exit(pid: nix::unistd::Pid) -> anyhow::Result<()> { +fn wait_for_exit(pid: nix::unistd::Pid) { loop { if nix::sys::signal::kill(pid, None).is_err() { break; } std::thread::sleep(std::time::Duration::from_millis(10)); } - Ok(()) } |