Procházet zdrojové kódy

* Decrease bogus FD if they successfully close

svn: 1911
Bryan Drewery před 21 roky
rodič
revize
0d809ddeec
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/shell.c

+ 2 - 0
src/shell.c

@@ -127,6 +127,8 @@ void check_maxfiles()
       if (!findanysnum(i))
         if ((close(i)) == -1)			/* try to close the BOGUS fd (likely a KQUEUE) */
           failed_close++;
+        else
+          bogus--;
     if (bogus >= 150 || failed_close >= 50) {
       nuke_server("Max FD reached, restarting...");
       cycle_time = 0;