]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove zombie crap
authorwessels <>
Wed, 27 Mar 1996 09:13:04 +0000 (09:13 +0000)
committerwessels <>
Wed, 27 Mar 1996 09:13:04 +0000 (09:13 +0000)
src/main.cc
src/tools.cc

index fa3b364791ce5013304bffcabe96589a78a560cf..3d37532a543d97e86fb54c1e4c189c600aba8a48 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: main.cc,v 1.7 1996/03/27 01:46:12 wessels Exp $ */
+/* $Id: main.cc,v 1.8 1996/03/27 02:13:04 wessels Exp $ */
 
 #include "squid.h"
 
@@ -386,9 +386,6 @@ Usage: cached [-Rsehvz] [-f config-file] [-d debug-level] [-[apu] port]\n\
                next_cleaning = cached_curtime + getCleanRate();
            }
            /* house keeping */
-#ifdef THIS_BREAKS_FTP
-           kill_zombie();
-#endif
            break;
        default:
            debug(0, "MAIN: Internal error -- this should never happen.\n");
index 336c404c198269e307e82de7c841d2317e3817ae..ea6c150796c47d1f67330dce8d858f1624cb9703 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: tools.cc,v 1.6 1996/03/27 01:46:26 wessels Exp $ */
+/* $Id: tools.cc,v 1.7 1996/03/27 02:13:04 wessels Exp $ */
 
 #include "squid.h"
 
@@ -230,20 +230,6 @@ void sig_child(sig)
 #endif
 }
 
-#define MAX_ZOMBIES_TO_KILL 20
-void kill_zombie()
-{
-    int status;
-    int i = 0;
-    int pid;
-
-    while ((pid = waitpid(-1, &status, WNOHANG | WUNTRACED)) > 0) {
-       debug(3, "kill_zombie: Ate pid %d\n", pid);
-       if (++i > MAX_ZOMBIES_TO_KILL)
-           break;
-    }
-}
-
 /*
  *  getMaxFD - returns the file descriptor table size
  */