Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2001 22:21:18 +0100
From:      Wilko Bulte <wkb@freebie.demon.nl>
To:        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:  <20010322222118.A2880@freebie.demon.nl>
In-Reply-To: <20010323080736.A8221@gsmx07.alcatel.com.au>; from peter.jeremy@alcatel.com.au on Fri, Mar 23, 2001 at 08:07:36AM %2B1100
References:  <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie> <20010323080736.A8221@gsmx07.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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. Gibbs" 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.
> 
> 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).

Isn't that what a SysV init does?

W/

-- 
|   / o / /  _  	 Arnhem, The Netherlands    	email: wilko@freebsd.org
|/|/ / / /( (_) Bulte	 http://www.freebsd.org 	http://www.nlfug.nl

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?20010322222118.A2880>