Date: Wed, 21 Mar 2001 13:45:15 -0800 From: "Jonathan Graehl" <jonathan@graehl.org> To: "freebsd-Arch" <freebsd-arch@FreeBSD.ORG> Subject: RE: Request for review [Re: /bin/ls patch round #2] Message-ID: <NCBBLOALCKKINBNNEDDLEEOPDMAA.jonathan@graehl.org> In-Reply-To: <200103212119.QAA22140@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> You would have to exclude most of the programs in 4.4BSD by that > definition. There is a reason why interfaces like err(3) and > daemon(3) are included in the standard C library, and the style guide > strongly recommends their usage. > > -GAWollman While I was aware of err, daemon is quite a pleasant surprise. A month ago, I looked at several FreeBSD servers (inetd, syslogd, and others) and was dismayed to find that they all had their own little variation on the same fork/setsid/chdir/dup2"/dev/null" theme. Are there any plans to change the FreeBSD servers to use err and daemon rather than their homegrown equivalents? (I'm already changing mine, since I did almost exactly the same thing, except that I have a compile time option to have the child sleep and the parent print its pid to make debugging with gdb in daemon mode possible). Is using setlogin("") recommended for root daemons? I assume daemon doesn't do it ... -- Jonathan Graehl http://jonathan.graehl.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBLOALCKKINBNNEDDLEEOPDMAA.jonathan>