From 6634d89019f9e8a71750494a4e031a1eab522339 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Sun, 19 Mar 2006 23:31:30 +0000 Subject: Release that improves performance a bit on most platforms, but dramatically on freebsd. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@117 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index e66d99e..1682ae5 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -113,6 +113,12 @@ class Start < GemPlugin::Plugin "/commands" File.unlink @pid_file if File.exist?(@pid_file) @restart = true } + + trap("INT") { + server.stop + File.unlink @pid_file if File.exist?(@pid_file) + @restart = false + } end # hook up any rails specific plugins -- cgit v1.2.3-24-ge0c7