From 39c1bad6267bd74f5fa0a6a625b7ae48e47793fb Mon Sep 17 00:00:00 2001 From: zedshaw Date: Thu, 15 Jun 2006 18:14:07 +0000 Subject: Major bug fixed where sockets would get leaked if the client closed early (or any socket errors from the client). git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@238 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/command.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/mongrel/command.rb') diff --git a/lib/mongrel/command.rb b/lib/mongrel/command.rb index 20466e2..1071944 100644 --- a/lib/mongrel/command.rb +++ b/lib/mongrel/command.rb @@ -186,6 +186,9 @@ module Mongrel if !cmd_name or cmd_name == "?" or cmd_name == "help" print_command_list return true + elsif cmd_name == "--version" + STDERR.puts "Mongrel Web Server #{Mongrel::Const::MONGREL_VERSION}" + return true end # command exists, set it up and validate it @@ -194,7 +197,7 @@ module Mongrel rescue STDERR.puts "INVALID COMMAND: #$!" print_command_list - return + return false end # Normally the command is NOT valid right after being created @@ -208,6 +211,7 @@ module Mongrel command.run end end + return true end -- cgit v1.2.3-24-ge0c7