summaryrefslogtreecommitdiff
path: root/src/TimedHaltCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-02 14:50:33 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-02 14:50:33 +0000
commit919255b4db38c67ea79d67646daf8670fb2f0be3 (patch)
tree1dbb2437bee73b987a3613e5f5ddc731213db780 /src/TimedHaltCommand.cc
parent730f7449aefd5537709dcec64a2ef9973a2bc595 (diff)
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added aria2.shutdown and aria2.forceShutdown XML-RPC method. These methods, as their name implies, shutdown aria2. These methods are useful for Windows because it lacks signal mechanism. * doc/aria2c.1.txt * src/TimedHaltCommand.cc * src/XmlRpcMethodFactory.cc * src/XmlRpcMethodImpl.cc * src/XmlRpcMethodImpl.h
Diffstat (limited to 'src/TimedHaltCommand.cc')
-rw-r--r--src/TimedHaltCommand.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/TimedHaltCommand.cc b/src/TimedHaltCommand.cc
index 25f1deaf..6013cd2a 100644
--- a/src/TimedHaltCommand.cc
+++ b/src/TimedHaltCommand.cc
@@ -61,6 +61,7 @@ void TimedHaltCommand::process()
if(!_e->isHaltRequested()) {
logger->notice(MSG_TIME_HAS_PASSED, _interval);
if(_forceHalt) {
+ logger->notice("This is emergency shutdown.");
_e->requestForceHalt();
} else {
_e->requestHalt();