-/* $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"
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");
-/* $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"
#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
*/