Skip to content

Commit

Permalink
fixed INotify::Notifier::EINVAL (NameError) bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkovar committed Sep 13, 2010
1 parent 145ea27 commit 4252603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rb-inotify/notifier.rb
Expand Up @@ -229,7 +229,7 @@ def read_events
rescue SystemCallError => er
# EINVAL means that there's more data to be read
# than will fit in the buffer size
raise er unless er.errno == EINVAL || tries == 5
raise er unless er.errno == Errno::EINVAL::Errno || tries == 5
size *= 2
tries += 1
retry
Expand Down

0 comments on commit 4252603

Please sign in to comment.