Don't blow up if PID doesn't exist at the end

This commit is contained in:
Bryan Helmkamp 2009-11-13 21:22:41 -05:00
parent fcde80f43f
commit 7812f25741
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ Spec::Runner.configure do |config|
end end
config.after :suite do config.after :suite do
Process.kill("TERM", File.read("rack.pid").to_i) if File.exists?("rack.pid")
Process.kill("TERM", File.read("rack.pid").to_i)
end
end end
end end