Subject: Re: CVS commit: basesrc/usr.sbin
To: None <itojun@iijlab.net>
From: Andrew Brown <atatat@atatdot.net>
List: source-changes
Date: 01/11/2002 01:38:40
>>>Log Message:
>>>daemon(3) has to be called before opening file descriptors.
>>>noticed by markus@openbsd, sync with kame
>>
>>this has the "side effect" of requiring that absolute paths to config
>>files be used at all times, since daemon(3) changes the working
>>directory. is this "acceptable" behavior?
>
> in general, yes, if you move daemon(3) carelessly you will get the
> sideeffect.
> for the above change, "file descriptors" are network sockets,
> and there shouldn't be a problem.
so...this is just to ensure that all of 0, 1, and 2 are properly
attached to /dev/null before calling, eg, openlog(3), yes?
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."