]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove old ftpget thread stuff
authorwessels <>
Tue, 26 Mar 1996 04:25:18 +0000 (04:25 +0000)
committerwessels <>
Tue, 26 Mar 1996 04:25:18 +0000 (04:25 +0000)
src/tools.cc

index b1c2d38c29e37006b5d4da72c303aab865a99946..6c225dc13eb1aa8b780044aba25e12fa886f7eef 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tools.cc,v 1.4 1996/03/22 17:48:07 wessels Exp $ */
+/* $Id: tools.cc,v 1.5 1996/03/25 21:25:18 wessels Exp $ */
 
 #include "config.h"
 #include <stdio.h>
 #include "debug.h"
 #include "cache_cf.h"
 #include "autoconf.h"
-#include "ftp.h"               /* sig_child() needs to know FTP threads */
-
 
 void death(), deathb(), neighbors_rotate_log(), stat_rotate_log();
 void mail_warranty(), print_warranty(), _db_rotate_log();
 int do_mallinfo = 0;           /* don't do mallinfo() unless this gets set */
 int PrintRusage _PARAMS((void (*)(), FILE *));
 
-extern ftpget_thread *FtpgetThread;
 extern int catch_signals;      /* main.c */
 extern int storeWriteCleanLog _PARAMS((void));
 
@@ -254,22 +251,10 @@ void sig_child(sig)
 {
     int status;
     int pid;
-    ftpget_thread *t = NULL;
 
-    if ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
+    if ((pid = waitpid(-1, &status, WNOHANG)) > 0)
        debug(3, "sig_child: Ate pid %d\n", pid);
-       for (t = FtpgetThread; t; t = t->next) {
-           debug(5, "sig_child: checking pid=%d  state=%d\n",
-               t->pid, t->state);
-           if (t->pid == pid && t->state == FTPGET_THREAD_RUNNING) {
-               debug(5, "sig_child: GOT IT!\n");
-               t->state = FTPGET_THREAD_WAITED;
-               t->status = status;
-               t->wait_retval = pid;
-               break;
-           }
-       }
-    }
+
 #if defined(_SQUID_SYSV_SIGNALS_)
     signal(sig, sig_child);
 #endif