[Zope] what is forking?

Takashi Linzbichler takashi.linzbichler@smartferret.com
Tue, 18 Sep 2001 15:30:29 +0200


Hi, Fritz !

Fritz Mesedilla wrote:
> 
> I configured the STUPID_LOG_FILE and got these in the logs:
> 2001-09-18T13:28:26 INFO(0) zdaemon zdaemon: Tue Sep 18 21:28:26 2001:
> Houston, we have forked
> ------
> 2001-09-18T13:28:26 INFO(0) zdaemon zdaemon: Tue Sep 18 21:28:26 2001: Hi, I
> just forked off a kid: 5155
> ------
> 2001-09-18T13:28:26 INFO(0) zdaemon zdaemon: Tue Sep 18 21:28:26 2001:
> Houston, we have forked
> 
> Is this an error?

Nope. Forking means nothing but starting a new process within another.
Especially with server- (= deamon-) processes, as in this case, this is
commonly used to start child processes hat e.g. have different user-ids.
For example the first Apache process starts with uid root (this has to
be that way because port 80 is a protected port accessible only  by
root) an then forks several children with non-root uids ...

Hm. Very simplified, but hopefully enough to make you feel better :-)

	ta

--------------------------------------------------------------------------
smartferret it-consulting Dipl.-Ing. Linzbichler KEG

Dipl.-Ing. Takashi Veikko Linzbichler
Tannhofweg 28/3
A-8044 Graz, Austria

Tel.:   0316 / 39 89 40 -0
Fax:    0316 / 39 89 40 -20
Mobil:  0676 / 31 26 286
eMail:  takashi.linzbichler@smartferret.com

WWW:    http://www.smartferret.com
--------------------------------------------------------------------------