Date: Thu, 22 Mar 2001 13:29:34 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Wilko Bulte <wkb@freebie.demon.nl> Cc: Ian Dowse <iedowse@maths.tcd.ie>, "Justin T. Gibbs" <gibbs@scsiguy.com>, Robert Watson <rwatson@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <20010322132934.A8271@xor.obsecurity.org> In-Reply-To: <20010322222118.A2880@freebie.demon.nl>; from wkb@freebie.demon.nl on Thu, Mar 22, 2001 at 10:21:18PM %2B0100 References: <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie> <20010323080736.A8221@gsmx07.alcatel.com.au> <20010322222118.A2880@freebie.demon.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <iedowse@maths.tcd.ie> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010322132934.A8271>