lib/gemirro/cli/server.rb in gemirro-0.13.1 vs lib/gemirro/cli/server.rb in gemirro-0.13.2

- old
+ new

@@ -104,13 +104,15 @@ def status if running?(pid) puts "#{$PROGRAM_NAME} is running" else puts "#{$PROGRAM_NAME} is not running" + abort end end def running?(process_id) + return false if process_id.nil? Process.getpgid(process_id.to_i) != -1 rescue Errno::ESRCH false end end