From owner-freebsd-hackers Mon Jul 14 23:52:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA09885 for hackers-outgoing; Mon, 14 Jul 1997 23:52:11 -0700 (PDT) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA09880 for ; Mon, 14 Jul 1997 23:52:05 -0700 (PDT) Received: from labs.usn.blaze.net.au (local [127.0.0.1]) by labs.usn.blaze.net.au (8.8.6/8.8.5) with ESMTP id QAA00408; Tue, 15 Jul 1997 16:50:53 +1000 (EST) Message-Id: <199707150650.QAA00408@labs.usn.blaze.net.au> X-Mailer: exmh version 2.0gamma 1/27/96 To: Ollivier Robert cc: hackers@FreeBSD.ORG Subject: /etc/rc.shutdown X-Face: (W@z~5kg?"+5?!2kHP)+l369.~a@oTl^8l87|/s8"EH?Uk~P#N+Ec~Z&@;'LL!;3?y Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 15 Jul 1997 16:50:52 +1000 From: David Nugent Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I'm in the process of testing your patch with some minor changes that make it work better, but I've come across a problem. /etc/rc.shutdown will never be run, because setctty() never returns - it reports "can't get /dev/console for controlling terminal: Operation not permitted" and exits the child process. Any ideas? The first ioctl() in login_tty() seems to be the point at which things fail. BTW, this is no doubt covering old ground, but obviously /sbin/shutdown doesn't run this. Should it, or should an option be added to cause it to raise a SIGINT/SIGQUIT to init?