From fad2c7236e70faf0669dde3e6cbd51986fdbc6ee Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 16 May 2013 17:10:08 +0100 Subject: major leakage --- rotord/rotord.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rotord/rotord.cpp') diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp index 1a68638..bf1be02 100755 --- a/rotord/rotord.cpp +++ b/rotord/rotord.cpp @@ -188,6 +188,9 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS content="Rotor: bad request\n"; } } + else if (command[0]=="exit") { + exit(0); + } else { bool found=false; for (auto& task: manager.taskList()) { //c++11 @@ -290,3 +293,4 @@ int RotorServer::main(const std::vector& args){ } return Application::EXIT_OK; } + \ No newline at end of file -- cgit v1.2.3