# File lib/adhearsion/initializer.rb, line 105 def create_pid_file(file = pid_file) if file File.open(pid_file, File::CREAT|File::WRONLY) do |file| file.write Process.pid end Hooks::TearDown.create_hook do File.delete(pid_file) if File.exists?(pid_file) end end end