--- innwebd/controld.cpp 2004/07/04 06:45:23 1.6 +++ innwebd/controld.cpp 2004/08/10 19:55:25 1.10 @@ -139,16 +139,16 @@ int controld::Accept(void) } else { - this>s_send("501 service"); + this->s_send("501 service"); } - contiinue; + continue; } if (cmd == "SHUTDOWN") { if (this->access.control) { - this->_send("Shutting down ... ",falsse); + this->s_send("Shutting down ... ",false); ((controld*)(this->GetParentThread()))->ShutdownChild(); @@ -431,31 +431,40 @@ void controld::StartupDelay(void) void controld::ShutdownChild(void) { - if (this->bbsd.end() == 0) - { - syslog << logfile::log_head << "End BBSD ... OK" << endl; - } - else + if (this->bbsd.IsRunning()) { - syslog << logfile::log_head << "End BBSD ... Failed" << endl; + if (this->bbsd.end() == 0) + { + syslog << logfile::log_head << "End BBSD ... OK" << endl; + } + else + { + syslog << logfile::log_head << "End BBSD ... Failed" << endl; + } } - if (this->innd.end() == 0) + if (this->innd.IsRunning()) { - syslog << logfile::log_head << "End INND ... OK" << endl; - } - else - { - syslog << logfile::log_head << "End INND ... Failed" << endl; + if (this->innd.end() == 0) + { + syslog << logfile::log_head << "End INND ... OK" << endl; + } + else + { + syslog << logfile::log_head << "End INND ... Failed" << endl; + } } - if (this->outd.end() == 0) - { - syslog << logfile::log_head << "End OUTD ... OK" << endl; - } - else + if (this->outd.IsRunning()) { - syslog << logfile::log_head << "End OUTD ... Failed" << endl; + if (this->outd.end() == 0) + { + syslog << logfile::log_head << "End OUTD ... OK" << endl; + } + else + { + syslog << logfile::log_head << "End OUTD ... Failed" << endl; + } } }