public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Hide the backtrace for Mongrel timeout errors.
wycats (author)
Thu Sep 25 23:57:07 -0700 2008
commit  205f2436a741841abc92901c015f3c470a5b99b7
tree    9a40349d32a3489fbd4295b63c3bca455d36d7cf
parent  27779e1f857c3555c87451a1011bbeee646fa1f5
...
8
9
10
11
 
 
 
 
 
 
12
13
14
...
8
9
10
 
11
12
13
14
15
16
17
18
19
0
@@ -8,7 +8,12 @@ module Merb
0
 
0
       def self.stop(status = 0)
0
         if @server
0
-          @server.stop(true)
0
+          begin
0
+            @server.stop(true)
0
+          rescue Mongrel::TimeoutError
0
+            Merb.logger.fatal! "Your process took too long to shut " \
0
+              "down, so mongrel killed it."
0
+          end
0
           true
0
         end
0
       end

Comments