Skip to content

Commit

Permalink
Merge pull request #81 from saluzafa/master
Browse files Browse the repository at this point in the history
abnormal termination fails silently + burns cpu
  • Loading branch information
thibaudgg committed Mar 3, 2018
2 parents 0b8b736 + b061d1f commit c08d62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rb-fsevent/fsevent.rb
Expand Up @@ -52,7 +52,7 @@ def run
found_length = false

while reading_length
byte = @pipe.read(1)
byte = @pipe.read_nonblock(1)
if "#{byte}" =~ /\d/
length << byte
found_length = true
Expand Down

0 comments on commit c08d62c

Please sign in to comment.