Re: Why does squid not use setsid()?

From: Frederic Olivie <[email protected]>
Date: Wed, 23 Jul 1997 14:44:23 +0200

This is a very simple issue,

If squid was using setsid, it would detach itself from it's process
group leader, that is, the shell script that called him.

Then, we wouldn't have anymore the auto-relaunch scheme when the process
dies unintentionnaly, or when u kill it for any reason.

This functionality is provided by the shell script : RunCache.

More than that, if u runned squid with RunCache, and it would setsid()
itself, then RunCache would try to launch other instances of the same
process till it dies complaining for too many launches in a small period
of time..... Etc.... Etc... With all side effects.

-- 
Frederic OLIVIE (Alf) - Information System Manager
GROLIER INTERACTIVE Europe / Online Groupe
11, rue de Cambrai, 75927, Paris Cedex 19, France
Voice : +33-(0)1-55-45-47-91, Fax : +33-(0)1-55-45-47-10
Pager : +33-(0)6-06-41-88-00, Mobile : +33-(0)6-03-03-33-50
MailTo:[email protected] http://www.club-internet.fr
Very Funny Scotty, now beam down my clothes !!!
		Captain James T. Kirk, Starship Enterprise.
Received on Wed Jul 23 1997 - 05:49:16 MDT

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