From owner-freebsd-current@FreeBSD.ORG Sat Mar 13 01:51:59 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 3E35416A4CE for ; Sat, 13 Mar 2004 01:51:59 -0800 (PST) Received: from bspu.ab.ru (bspu.ab.ru [212.94.100.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id D351E43D46 for ; Sat, 13 Mar 2004 01:51:56 -0800 (PST) (envelope-from swp@uni-altai.ru) Received: from bspu.secna.ru (root@bspu.secna.ru [212.192.2.193]) by bspu.ab.ru (8.12.10/8.12.10) with ESMTP id i2DA359C021769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Mar 2004 16:03:06 +0600 (NOVT) (envelope-from swp@uni-altai.ru) Received: from uni-altai.ru (swp.bspu.secna.ru [212.192.2.73]) (authenticated login=swp bits=0) by bspu.secna.ru (8.12.11/8.12.11) with ESMTP id i2D9ppZE025406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Mar 2004 15:51:52 +0600 (NOVT) (envelope-from swp@uni-altai.ru) Message-ID: <4052D9B7.9000702@uni-altai.ru> Date: Sat, 13 Mar 2004 15:51:51 +0600 From: "a.s. mitrohin" Organization: BSPU User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7a) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 13 Mar 2004 05:15:14 -0800 Subject: init question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: swp@uni-altai.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 09:51:59 -0000 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. 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