From owner-freebsd-current@FreeBSD.ORG Mon Mar 15 14:39:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0EC816A4CE for ; Mon, 15 Mar 2004 14:39:09 -0800 (PST) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C45043D45 for ; Mon, 15 Mar 2004 14:39:09 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 1360 invoked from network); 15 Mar 2004 22:39:08 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Mar 2004 22:39:08 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i2FMd328060543; Mon, 15 Mar 2004 17:39:05 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@freebsd.org, swp@uni-altai.ru Date: Mon, 15 Mar 2004 15:51:47 -0500 User-Agent: KMail/1.6 References: <4052D9B7.9000702@uni-altai.ru> In-Reply-To: <4052D9B7.9000702@uni-altai.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403151551.47887.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: init question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 22:39:09 -0000 On Saturday 13 March 2004 04:51 am, a.s. mitrohin wrote: > helo. > > CURRENT unable to start program for /etc/ttys entry > > pid_file "program --pid" unknown on > > but this is ok for RELENG_4 > > > if this have no fatal effects, please remove check > ENOENT. RELENG_4 have no this in condition. It was removed because with devfs, device entries don't always exist, so an unconfigured device is now going to result in ENOENT rather than ENXIO. The example I think was on Alpha which has a /dev/zs0 console on some machines and on machines that don't have zs0, log messages about failing to open zs0 would spam the console. > Index: init.c > =================================================================== > RCS file: /usr/cvs/freebsd/ncvs/src/sbin/init/init.c,v > retrieving revision 1.51 > retrieving revision 1.52 > diff -u -r1.51 -r1.52 > --- init.c 3 Aug 2002 16:21:33 -0000 1.51 > +++ init.c 27 Sep 2002 16:02:28 -0000 1.52 > @@ -45,7 +45,7 @@ > static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93"; > #endif > static const char rcsid[] = > - "$FreeBSD: src/sbin/init/init.c,v 1.51 2002/08/03 16:21:33 mux Exp $"; > + "$FreeBSD: src/sbin/init/init.c,v 1.52 2002/09/27 16:02:28 jhb Exp $"; > #endif /* not lint */ > > #include > @@ -939,7 +939,7 @@ > * then don't add the device to the session list. > */ > if ((fd = open(sp->se_device, O_RDONLY | O_NONBLOCK, 0)) < 0) { > - if (errno == ENXIO) { > + if (errno == ENXIO || errno == ENOENT) { > free_session(sp); > return (0); > } > > > ? > sorry for my terrible english... > > /swp > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org