Skip to content
Browse files

Don't die if logger.pid is not present (fixes #6).

  • Loading branch information...
1 parent 6437201 commit 07461ad28355acb5afd6788efd408925b1ac37e0 @whitequark committed Aug 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 logger.rb
View
2 logger.rb
@@ -13,7 +13,7 @@
Process.kill 0, old_pid
raise "An existing logger process is running with pid #{old_pid}. Refusing to start"
-rescue Errno::ESRCH
+rescue Errno::ESRCH, Errno::ENOENT
end
File.open(pidfile, 'w') do |f|

0 comments on commit 07461ad

Please sign in to comment.
Something went wrong with that request. Please try again.