Skip to content

Commit

Permalink
Merge pull request #92 from estraph/raph/rescue-errbadf-on-close
Browse files Browse the repository at this point in the history
rescue Errno::EBADF when closing pipe
  • Loading branch information
thibaudgg committed Feb 6, 2022
2 parents b3ed644 + 17dbb66 commit 30bfe52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rb-fsevent/fsevent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def stop
Process.kill('KILL', @pipe.pid) if process_running?(@pipe.pid)
@pipe.close
end
rescue IOError
rescue IOError, Errno::EBADF
ensure
@running = false
end
Expand Down

0 comments on commit 30bfe52

Please sign in to comment.