Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FIX: defunct process

  • Loading branch information...
commit aff9b303166989c354a93dec4e52969237403a8f 1 parent ba9ccdc
Yoshimasa Niwa authored November 16, 2009 eric committed November 24, 2009
1  lib/god/cli/command.rb
@@ -215,6 +215,7 @@ def check_command
215 215
             puts "killing process"
216 216
             
217 217
             ::Process.kill('KILL', pid)
  218
+            ::Process.waitpid2(pid) rescue Errno::ECHILD
218 219
           rescue => e
219 220
             puts e.message
220 221
             puts e.backtrace.join("\n")
3  lib/god/event_handler.rb
@@ -92,6 +92,7 @@ def self.operational?
92 92
           end
93 93
           
94 94
           ::Process.kill('KILL', pid)
  95
+          ::Process.waitpid2(pid) rescue Errno::ECHILD
95 96
           
96 97
           sleep(0.1)
97 98
           
@@ -108,4 +109,4 @@ def self.operational?
108 109
     end
109 110
     
110 111
   end
111  
-end
  112
+end

0 notes on commit aff9b30

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