]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Align names that are output on startup using \t htabs
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 8f757e0476886ed5c7a985ca1d1a6c1c9159d9dc..9b48d83ef4dc85b5efa2af17c96490f3a1169aba 100644 (file)
@@ -649,7 +649,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                 expire_run = false;
         }
 
-       if (iterations++ == 30)
+       if (iterations++ == 15)
        {
                iterations = 0;
                DoBackgroundUserStuff(TIME);
@@ -773,7 +773,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                                                 }
                                                 catch (ModuleException& modexcept)
                                                 {
-                                                        log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); \
+                                                        log(DEBUG,"Module exception cought: %s",modexcept.GetReason());
                                                 }
                                         }
                                         stats->statsAccept++;
@@ -795,6 +795,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                                  * what we would do, so for now, its going
                                  * to safely do bugger all.
                                  */
+                               SE->DelFd(activefds[activefd]);
                         break;
                 }
         }
@@ -811,8 +812,9 @@ int InspIRCd::Run()
        
        if (!Config->nofork)
        {
-               freopen("/dev/null","w",stdout);
-               freopen("/dev/null","w",stderr);
+               fclose(stdout);
+               fclose(stderr);
+               fclose(stdin);
        }
 
        /* Add the listening sockets used for client inbound connections