memory locking in squid

From: <wojtek@dont-contact.us>
Date: Sat, 28 Apr 2001 11:50:21 +0200 (CEST)

where (in code) does squid spawns secondary (worker) process.

i've done small patch do add -M option which does mlockall(MCL_FUTURE) so
squid is never swapped out, but now it locks both processes.
there is no need to lock first as it's only waiting.

this patch works both in linux and netbsd (and probably would in
freebsd) but i don't know where to put #include <sys/mman.h> to be
compatible with ./configure etc..
Received on Sat Apr 28 2001 - 03:50:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:51 MST