diff options
-rw-r--r-- | include/inspircd.h | 10 | ||||
-rw-r--r-- | src/inspircd.cpp | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 5a8dbcf97..fd657a63b 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -107,6 +107,16 @@ class InspIRCd void erase_module(int j); void BuildISupport(); void MoveTo(std::string modulename,int slot); + bool expire_run; + int activefds[MAX_DESCRIPTORS]; + int incomingSockfd; + int in_port; + userrec* cu; + InspSocket* s; + InspSocket* s_del; + unsigned int numberactive; + sockaddr_in sock_us; // our port number + socklen_t uslen; // length of our port number public: time_t startup_time; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9eeec73a3..98418a967 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -606,7 +606,7 @@ bool InspIRCd::LoadModule(const char* filename) void InspIRCd::DoOneIteration(bool process_module_sockets) { - bool expire_run = false; + /*bool expire_run = false; int activefds[MAX_DESCRIPTORS]; int incomingSockfd; int in_port; @@ -615,7 +615,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) InspSocket* s_del = NULL; unsigned int numberactive; sockaddr_in sock_us; // our port number - socklen_t uslen; // length of our port number + socklen_t uslen;*/ // length of our port number /* time() seems to be a pretty expensive syscall, so avoid calling it too much. * Once per loop iteration is pleanty. @@ -803,6 +803,8 @@ int InspIRCd::Run() WritePID(Config->PID); /* main loop, this never returns */ + expire_run = false; + while (true) { DoOneIteration(true); |