Permalink
Browse files

Merge pull request #59 from socialreferral/feature/process_kill

Force use of global namespaced Process class
  • Loading branch information...
2 parents c998a73 + a9e0eec commit 6e678001c9c6900c4a670fd88fc26097495902d1 @thibaudgg thibaudgg committed Jan 2, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/guard/spork/runner.rb
  2. +3 −3 lib/guard/spork/spork_instance.rb
@@ -50,7 +50,7 @@ def initialize_spork_instances
def kill_pids(pids)
UI.debug "Killing Spork servers with PID: #{pids.join(', ')}"
- pids.each { |pid| Process.kill("KILL", pid) }
+ pids.each { |pid| ::Process.kill("KILL", pid) }
end
def ps_spork_pids
@@ -30,7 +30,7 @@ def start
end
def stop
- Process.kill('KILL', pid)
+ ::Process.kill('KILL', pid)
end
def alive?
@@ -71,11 +71,11 @@ def env_exec(environment, command)
end
private
-
+
def use_bundler?
options[:bundler]
end
-
+
end
end
end

0 comments on commit 6e67800

Please sign in to comment.