From owner-cvs-all Thu Mar 22 13:29:44 2001 Delivered-To: cvs-all@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-43.dsl.lsan03.pacbell.net [63.207.60.43]) by hub.freebsd.org (Postfix) with ESMTP id 73E6237B71A; Thu, 22 Mar 2001 13:29:34 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 208D266BD5; Thu, 22 Mar 2001 13:29:34 -0800 (PST) Date: Thu, 22 Mar 2001 13:29:34 -0800 From: Kris Kennaway To: Wilko Bulte Cc: Ian Dowse , "Justin T. Gibbs" , Robert Watson , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <20010322132934.A8271@xor.obsecurity.org> References: <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie> <20010323080736.A8221@gsmx07.alcatel.com.au> <20010322222118.A2880@freebie.demon.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010322222118.A2880@freebie.demon.nl>; from wkb@freebie.demon.nl on Thu, Mar 22, 2001 at 10:21:18PM +0100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 22, 2001 at 10:21:18PM +0100, Wilko Bulte wrote: > On Fri, Mar 23, 2001 at 08:07:36AM +1100, Peter Jeremy wrote: > > On 2001-Mar-21 20:23:35 +0000, Ian Dowse wrote: > > >In message <200103210507.f2L57rs76820@aslan.scsiguy.com>, "Justin T. G= ibbs" wri > > >tes: > > >>Why not put an implementation in libutil or some other place > > >>where they can be shared. > > > > > >This is complicated by the differing needs of the two programs - > > >init(8) waits in waitpid() so it can reap zombies whereas reboot(8) > > >just uses sleep(). A library function that contains most of the > > >logic sounds like a good idea though. > >=20 > > 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 > Isn't that what a SysV init does? Amusing point of note: our Linnex server at uni has an easily-confused init which likes to rectally insert its own head and go into a spin, refusing to reap zombies or change runlevel. As far as we can tell there is no way to reboot this box short of hitting the big red switch. Kris --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6um69Wry0BWjoQKURAnRKAKDvJ9LcJCzsdFfLNVq2kMuSfPdIsQCg3SsB m4iuCpM+A7aKSEzmncLCI1s= =tgsX -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message