Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/usr.sbin



>>>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@localhost             * "ah!  i see you have the internet
twofsonet%graffiti.com@localhost (Andrew Brown)                that goes 
*ping*!"
andrew%crossbar.com@localhost       * "information is power -- share the 
wealth."



Home | Main Index | Thread Index | Old Index