diff options
| author | 2005-12-29 14:03:14 +0000 | |
|---|---|---|
| committer | 2005-12-29 14:03:14 +0000 | |
| commit | 024f972eb1ffc67bb32b2f083955199cbd6ecdde (patch) | |
| tree | e5d0fe90854d116e93d1ce45849e0e8586d02f89 /src/inspircd.cpp | |
| parent | Initial revision of /devoice. (diff) | |
| download | inspircd++-024f972eb1ffc67bb32b2f083955199cbd6ecdde.tar.gz inspircd++-024f972eb1ffc67bb32b2f083955199cbd6ecdde.tar.bz2 inspircd++-024f972eb1ffc67bb32b2f083955199cbd6ecdde.zip | |
Added counters for MAX_DESCRIPTORS etc which allows the socket engine to refuse new fd's once you hit the OS limit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2696 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6f1889bbf..fbcfc12d1 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -474,13 +474,9 @@ int InspIRCd::Run() * descriptors in its list... dns, modules, users, * servers... so its nice and easy, just one call. */ - numberactive = SE->Wait(activefds); - - if (!numberactive) + if (!(numberactive = SE->Wait(activefds))) continue; - log(DEBUG,"%d active fds this time around",numberactive); - /** * Now process each of the fd's. For users, we have a fast * lookup table which can find a user by file descriptor, so |
