Henrik Nordstrom wrote:
> wojtek@3miasto.net wrote:
>
>
>> it forks and child process reexecutes squid but with "(squid)" argv[0]
>> set. so where this child process (the same executable) know it should
>> behave as master or worker process??
>> i can't find that
>
> What?
>
> There are only two processes:
>
> a) The parent, which is responsible for restarting the child if it
> should fail
>
> b) The child, where all traffic is managed.
>
> --
> Henrik Nordstrom
> Squid Hacker
It forks() twice IIRC.
The first fork detaches from the console
The second fork is when the child gets going...
Or am I lost?
Rob
Received on Sun Apr 29 2001 - 08:04:29 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:51 MST