Skip to content

Commit c08d62c

Browse files
authored
Merge pull request #81 from saluzafa/master
abnormal termination fails silently + burns cpu
2 parents 0b8b736 + b061d1f commit c08d62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rb-fsevent/fsevent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run
5252
found_length = false
5353

5454
while reading_length
55-
byte = @pipe.read(1)
55+
byte = @pipe.read_nonblock(1)
5656
if "#{byte}" =~ /\d/
5757
length << byte
5858
found_length = true

0 commit comments

Comments
 (0)