Skip to content

Commit

Permalink
Merge pull request #174 from passcod/inotify-no-poll-timeout
Browse files Browse the repository at this point in the history
Remove timeout on inotify poll
  • Loading branch information
passcod committed Jan 22, 2019
2 parents 6e211f7 + c241e2b commit 0ae1fa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/inotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0ae1fa8

Please sign in to comment.