From owner-freebsd-current Tue Aug 5 07:00:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA14184 for current-outgoing; Tue, 5 Aug 1997 07:00:05 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA14112; Tue, 5 Aug 1997 06:59:51 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.6/8.8.5) id RAA00833; Tue, 5 Aug 1997 17:59:43 +0400 (MSD) Date: Tue, 5 Aug 1997 17:59:41 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: davidn@freebsd.org, FreeBSD-current Subject: init rc.shutdown code broken Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk TIOCSCTTY _always_ fails in following runshutdown() fragment: if ((fd = open(_PATH_CONSOLE, O_RDWR)) == -1) warning("can't open %s: %m", _PATH_CONSOLE); else { if (ioctl(fd, TIOCSCTTY, (char *)NULL) == -1) warning("can't get %s for controlling terminal: %m", _PATH_CONSOLE); To see this message just boot machine and then press CtrlAltDel at login: prompt. You can add sleep 30 to rc.shutdown to not miss it. So, console never be controlling terminal for shutdown process. I think it is because console t_session is aleady set. Don't have idea how to fix it, I try revoke() but it not helps. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/