From: wessels <> Date: Thu, 14 Jan 1999 04:00:10 +0000 (+0000) Subject: FreeBSD has a linuxthreads package X-Git-Tag: SQUID_3_0_PRE1~2411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e7a0442afbfbcb41cac976a85f33743d698cc10;p=thirdparty%2Fsquid.git FreeBSD has a linuxthreads package --- diff --git a/src/main.cc b/src/main.cc index 26a5403c0c..57f3dfd5c9 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.282 1998/12/16 06:04:16 wessels Exp $ + * $Id: main.cc,v 1.283 1999/01/13 21:00:10 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -155,13 +155,13 @@ mainParseOptions(int argc, char *argv[]) if (!strncmp(optarg, "reconfigure", strlen(optarg))) opt_send_signal = SIGHUP; else if (!strncmp(optarg, "rotate", strlen(optarg))) -#if (defined(_SQUID_LINUX_) && USE_ASYNC_IO) +#ifdef _SQUID_LINUX_THREADS_ opt_send_signal = SIGQUIT; #else opt_send_signal = SIGUSR1; #endif else if (!strncmp(optarg, "debug", strlen(optarg))) -#if (defined(_SQUID_LINUX_) && USE_ASYNC_IO) +#ifdef _SQUID_LINUX_THREADS_ opt_send_signal = SIGTRAP; #else opt_send_signal = SIGUSR2; @@ -453,7 +453,7 @@ mainInitialize(void) if (!configured_once) writePidFile(); /* write PID file */ -#if (defined(_SQUID_LINUX_) && USE_ASYNC_IO) +#ifdef _SQUID_LINUX_THREADS_ squid_signal(SIGQUIT, rotate_logs, SA_RESTART); squid_signal(SIGTRAP, sigusr2_handle, SA_RESTART); #else