diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-05-16 17:10:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-05-16 17:10:08 +0100 |
| commit | fad2c7236e70faf0669dde3e6cbd51986fdbc6ee (patch) | |
| tree | 3e639c8ccb12ab8289326eaa657abd96fa108f21 /rotord/rotord.cpp | |
| parent | 8d88180d523d82e5c6535ea03ef22791d0cbd9d0 (diff) | |
major leakage
Diffstat (limited to 'rotord/rotord.cpp')
| -rwxr-xr-x | rotord/rotord.cpp | 4 |
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 |
