Date: Sat, 13 Mar 2004 15:51:51 +0600 From: "a.s. mitrohin" <swp@uni-altai.ru> To: freebsd-current@freebsd.org Subject: init question Message-ID: <4052D9B7.9000702@uni-altai.ru>
next in thread | raw e-mail | index | archive | help
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 <sys/param.h> @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4052D9B7.9000702>