summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-05-16 17:10:08 +0100
committerTim Redfern <tim@herge.(none)>2013-05-16 17:10:08 +0100
commitfad2c7236e70faf0669dde3e6cbd51986fdbc6ee (patch)
tree3e639c8ccb12ab8289326eaa657abd96fa108f21 /rotord/rotord.cpp
parent8d88180d523d82e5c6535ea03ef22791d0cbd9d0 (diff)
major leakage
Diffstat (limited to 'rotord/rotord.cpp')
-rwxr-xr-xrotord/rotord.cpp4
1 files changed, 4 insertions, 0 deletions
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="<status>Rotor: bad request</status>\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<std::string>& args){
}
return Application::EXIT_OK;
}
+ \ No newline at end of file