fork() after pthread_mutex_init()

Matthew Newton mcn4 at leicester.ac.uk
Fri May 3 16:27:06 CEST 2013


On Fri, May 03, 2013 at 04:04:42PM +0200, Edgar Fuß wrote:
> Also, moving the configuration reading block after the daemonizing block
> seems to work, but I'm afraid there was a good reason for reading the
> configuration before doing the fork.

This is usually done so that config file read/parse errors can be
spat out to the user before stderr is closed. I would guess it's
the same here.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Devel mailing list