From c241e2b0c09d65f7a07a5e080cf0ca7554c54058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Tue, 22 Jan 2019 17:48:12 +1300 Subject: [PATCH] Remove timeout on inotify poll This was added in #162 but I don't think it's actually needed. All events go through this, even shutdown events (so we don't need to handle signals ourselves / use `poll_interruptible`). Reported in #173 --- src/inotify.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/inotify.rs b/src/inotify.rs index c363f97c..9641914f 100644 --- a/src/inotify.rs +++ b/src/inotify.rs @@ -146,11 +146,10 @@ impl EventLoop { fn event_loop_thread(mut self) { let mut events = mio::Events::with_capacity(16); - let timeout = Duration::from_millis(100); loop { // Wait for something to happen. self.poll - .poll(&mut events, Some(timeout)) + .poll(&mut events, None) .expect("poll failed"); // Process whatever happened.