From owner-cvs-all Mon Oct 7 14:40:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA8FF37B442; Mon, 7 Oct 2002 14:40:23 -0700 (PDT) Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8949B43E7B; Mon, 7 Oct 2002 14:40:22 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id g97LeKu9022695; Tue, 8 Oct 2002 07:40:21 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.11) with ESMTP id 2002100807401956:7308 ; Tue, 8 Oct 2002 07:40:19 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id g97LeJ2t080233; Tue, 8 Oct 2002 07:40:19 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id g97LeJvT080232; Tue, 8 Oct 2002 07:40:19 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Tue, 8 Oct 2002 07:40:19 +1000 From: Peter Jeremy To: John Baldwin Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/init init.c Message-ID: <20021007214019.GA80107@gsmx07.alcatel.com.au> Mail-Followup-To: John Baldwin , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200209271602.g8RG2TC8053450@freefall.freebsd.org> Mime-Version: 1.0 In-Reply-To: <200209271602.g8RG2TC8053450@freefall.freebsd.org> User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 07:40:19 AM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 07:40:21 AM, Serialize complete at 08/10/2002 07:40:21 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Sep-27 09:02:28 -0700, John Baldwin wrote: >jhb 2002/09/27 09:02:28 PDT > > Modified files: > sbin/init init.c > Log: > Give up on a tty if opening it's special file returns ENOENT like we do > for > ENXIO. > > Glanced at by: imp, gallatin > > Revision Changes Path > 1.52 +1 -1 src/sbin/init/init.c I can see why this change might be useful in conjunction with DEVFS but I have a problem with this change. In particular, I have a number of systems that rely on the old functionality. This is now also inconsistent with the documentation in init(8). The old behaviour is documented in init(8) as follows: Init can also be used to keep arbitrary daemons running, automatically restarting them if they die. In this case, the first field in the ttys(5) file must not reference the path to a configured device node and will be passed to the daemon as the final argument on its command line. This is similar to the facility offered in the AT&T System V UNIX /etc/inittab. This means that I could include the following line in /etc/ttys proxy2 "/usr/local/libexec/proxy2 -f /usr/local/etc/proxy.ports" none on and init would happily run my program (because /dev/proxy2 does not exist), restarting it if it died. Looking through the error returns from open(2), it looks like the "persistent daemon" approach is still possible by using a device name like "null/foo" - which will generate ENOTDIR. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message