From owner-cvs-all Mon Mar 26 15:10:55 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 2D35A37B719; Mon, 26 Mar 2001 15:10:51 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f2QNAfG29093; Mon, 26 Mar 2001 15:10:42 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 26 Mar 2001 15:10:18 -0800 (PST) From: John Baldwin To: Robert Watson Subject: Re: cvs commit: src/sbin/reboot reboot.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Peter Jeremy , Ian Dowse , Coleman Kane Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 26-Mar-01 Robert Watson wrote: > On Mon, 26 Mar 2001, Coleman Kane wrote: > >> I am in agreement with Kris and Garrett on this one. I too have seen >> Linux init hold up the system until it is powered off. Typically, this >> is because of my own stupidity, but it is nice to be able to seperately >> down the box gracefully. > > However, what you could imagine is a scenario where: (a) reboot(8) and > halt(8) signal init(8) to perform sane system shutdown by default, but (b) > have a new flag that specifies that rather than taking down the system via > the supported shutdown sequence, to directly kill system processes and > request the kernel halt the system. This would distinguish the sane and > orderly shutdown of init from the "it's not working" behavior of reboot > and halt, while combining code paths in the common ("it is working") case. Since reboot will still need the code for the fallback case, this doesn't avoid any of the code duplication. This would just be more work than what we have now w/o any gain that I can see. :-P If you want to share the code, stick it in a library. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message