From owner-cvs-all Mon Mar 26 8:36:32 2001 Delivered-To: cvs-all@freebsd.org Received: from one.net (ip-216-23-53-181.adsl.one.net [216.23.53.181]) by hub.freebsd.org (Postfix) with ESMTP id A1B4537B718; Mon, 26 Mar 2001 08:36:26 -0800 (PST) (envelope-from cokane@one.net) Received: (from cokane@localhost) by one.net (8.11.3/8.11.3) id f2QGmku88261; Mon, 26 Mar 2001 11:48:46 -0500 (EST) (envelope-from cokane) Date: Mon, 26 Mar 2001 11:48:46 -0500 From: Coleman Kane To: Ian Dowse Cc: Peter Jeremy , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <20010326114846.A83061@cokane.yi.org> References: <20010323080736.A8221@gsmx07.alcatel.com.au> <200103222207.aa91848@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" X-Mailer: Mutt 1.0.1i In-Reply-To: <200103222207.aa91848@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Thu, Mar 22, 2001 at 10:07:49PM +0000 X-Vim: vim:tw=70:ts=4:sw=4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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. Ian Dowse had the audacity to say: >=20 > In message <20010323080736.A8221@gsmx07.alcatel.com.au>, Peter Jeremy wri= tes: > > > >Instead of moving the common functionality into a common library, > >why not move it into a common process. Why can't reboot(8) just > >ask init(8) to massacre all the processes and reboot? (Or, vice > >versa, init could spawn reboot(8) to do the same thing). >=20 > This had certainly crossed my mind too, but for reasons already > suggested, it doesn't seem the right thing to do. I'm not convinced > that libutil is the right place for such code either - it's not > useful enough to appear in a fairly widely-used library. >=20 > Two other not-so-elegant approaches are: >=20 > - Share a source file between reboot and init. >=20 > - Make reboot(8) and halt(8) hard links to init(8), and have init > do the right thing according to argv[0]. >=20 > Ian >=20 --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6v3LsERViMObJ880RAS09AJ96Ul4LJjdEh3h2O6kOpvoaDZjcgQCgxx2o 8E/naUUYxOG0eSgBUXXBf40= =7pz4 -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message