Permalink
Browse files

fix a dumb thing and another thing

  • Loading branch information...
1 parent 2654061 commit d0901933c186520a3f7afdd411c5594e46874a83 @johnbintz johnbintz committed Jun 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/guard/rails/runner.rb
@@ -22,6 +22,7 @@ def start
def stop
if File.file?(pid_file)
system %{kill -KILL #{File.read(pid_file).strip}}
+ sleep sleep_time
end
end
@@ -75,7 +76,7 @@ def kill_unmanaged_pid!
def unmanaged_pid
pid_command = "lsof -n -i TCP:#{options[:port]}"
- %x{pid_command}.each_line { |line|
+ %x{#{pid_command}}.each_line { |line|
if line["*:#{options[:port]} "]
return line.split("\s")[1]
end

0 comments on commit d090193

Please sign in to comment.