From owner-freebsd-arch Wed Mar 21 13:46:28 2001 Delivered-To: freebsd-arch@freebsd.org Received: from molly.straylight.com (molly.straylight.com [209.68.199.242]) by hub.freebsd.org (Postfix) with ESMTP id AA22D37B71A for ; Wed, 21 Mar 2001 13:46:25 -0800 (PST) (envelope-from jonathan@graehl.org) Received: from dickie (case.straylight.com [209.68.199.244]) by molly.straylight.com (8.11.0/8.10.0) with SMTP id f2LLkEE12537 for ; Wed, 21 Mar 2001 13:46:14 -0800 From: "Jonathan Graehl" To: "freebsd-Arch" Subject: RE: Request for review [Re: /bin/ls patch round #2] Date: Wed, 21 Mar 2001 13:45:15 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <200103212119.QAA22140@khavrinen.lcs.mit.edu> Importance: Normal Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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