Skip to content

Commit c241e2b

Browse files
authored
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
1 parent 6e211f7 commit c241e2b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/inotify.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ impl EventLoop {
146146

147147
fn event_loop_thread(mut self) {
148148
let mut events = mio::Events::with_capacity(16);
149-
let timeout = Duration::from_millis(100);
150149
loop {
151150
// Wait for something to happen.
152151
self.poll
153-
.poll(&mut events, Some(timeout))
152+
.poll(&mut events, None)
154153
.expect("poll failed");
155154

156155
// Process whatever happened.

0 commit comments

Comments
 (0)