--- innwebd/controld.cpp 2004/08/10 19:55:25 1.10 +++ innwebd/controld.cpp 2005/05/20 14:32:36 1.13 @@ -1,7 +1,7 @@ /*******************************************************/ /* */ /* LeafOK Innbbsd */ -/* Copyright (C) LeafOK.com, 2003-2004 */ +/* Copyright (C) LeafOK.com, 2003-2005 */ /* */ /* Programmed by Leaf */ /* E-mail:leaflet@leafok.com QQ:6049044 */ @@ -89,6 +89,8 @@ int controld::Accept(void) } this->s_send(result == 0 ? "OK" : "Failed"); + + syslog << logfile::log_head << "Begin " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl; } else { @@ -131,6 +133,8 @@ int controld::Accept(void) } this->s_send(result == 0 ? "OK" : "Failed"); + + syslog << logfile::log_head << "End " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl; } else { @@ -426,6 +430,9 @@ void controld::StartupChild(void) void controld::StartupDelay(void) { + syslog << logfile::log_head << "Startup delay for " << + this->startup_delay << " seconds"<< endl; + Sleep(this->startup_delay * 1000); } @@ -495,3 +502,8 @@ int controld::CleanupThreadPool(void) return 0; } + +bool controld::check_priv(void) +{ + return this->access.control; +}