marcus at jet.franken.de
Mon Jan 27 01:05:17 CST 2003
On Mon, Jan 27, 2003 at 01:00:46AM +0400, Auge Mike wrote:
> /* open the master server socket and start waiting for new clients */
> Who can explain for me the task of the above function in more words?
> Why we need to do fork() inside this function, although the parent of this
> process will terminate after the child do call acquire_lock()?
To daemonize the server process (detach it from the current session group),
so it is not affect by signals or similar from it. See 'man setsid'.
More information about the wine-devel