Shopify / schmooze

Schmooze lets Ruby and Node.js work together intimately.
MIT License
72 stars 16 forks source link

Handle exceptions in the finalizer #17

Closed casperisfine closed 2 years ago

casperisfine commented 2 years ago

Fix:

~/gems/schmooze-0.1.6/lib/schmooze/base.rb:37:in `kill': No such process (Errno::ESRCH)
~/gems/schmooze-0.1.6/lib/schmooze/base.rb:37:in `block in finalize'

Which prints a warning starting from Ruby 3.1:

warning: Exception in finalizer #<Proc:0x00007fcd98bd0ca0 /tmp/bundle/ruby/3.1.0/gems/schmooze-0.1.6/lib/schmooze/base.rb:33>

NB: I had to unarchive the repo.