summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
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