From: wessels <> Date: Tue, 26 Mar 1996 04:25:18 +0000 (+0000) Subject: remove old ftpget thread stuff X-Git-Tag: SQUID_3_0_PRE1~6394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31d5a1dd0a1a9262b89e1b700111eb2f2c420cf;p=thirdparty%2Fsquid.git remove old ftpget thread stuff --- diff --git a/src/tools.cc b/src/tools.cc index b1c2d38c29..6c225dc13e 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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 @@ -17,15 +17,12 @@ #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