Date: Fri, 23 Mar 2001 08:07:36 +1100 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: "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: <20010323080736.A8221@gsmx07.alcatel.com.au> In-Reply-To: <200103212023.aa36148@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, Mar 21, 2001 at 08:23:35PM %2B0000 References: <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
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). Peter 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?20010323080736.A8221>