From 747ae4b7a56cf94562b5b339ab3adc88653aa337 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Feb 2006 10:13:22 +0000 Subject: Constant eating 20% cpu since last nights commit - test fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3361 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3