From: wessels <> Date: Wed, 18 Feb 1998 02:12:06 +0000 (+0000) Subject: call aioClose() to initalize asyncio stuff before forking X-Git-Tag: SQUID_3_0_PRE1~4079 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7cfd71f65a6c165517826f70617ed8d2148bd64;p=thirdparty%2Fsquid.git call aioClose() to initalize asyncio stuff before forking --- diff --git a/src/main.cc b/src/main.cc index eb07dad6fb..cedd78b3b5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.219 1998/02/13 18:26:58 wessels Exp $ + * $Id: main.cc,v 1.220 1998/02/17 19:12:06 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -436,6 +436,9 @@ mainInitialize(void) memInit(); /* memInit must go before at least redirect */ disk_init(); /* disk_init must go before ipcache_init() */ } +#if USE_ASYNC_IO + aioClose(dup(0)); /* cough */ +#endif ipcache_init(); fqdncache_init(); dnsOpenServers();