From owner-cvs-all Thu Mar 22 13:18:57 2001 Delivered-To: cvs-all@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 09D1837B71D; Thu, 22 Mar 2001 13:18:47 -0800 (PST) (envelope-from wkb@freebie.demon.nl) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 14gCTl-000Cy0-00; Thu, 22 Mar 2001 21:18:46 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.11.3/8.11.2) id f2MLLIq02894; Thu, 22 Mar 2001 22:21:18 +0100 (CET) (envelope-from wkb) Date: Thu, 22 Mar 2001 22:21:18 +0100 From: Wilko Bulte To: 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: <20010322222118.A2880@freebie.demon.nl> References: <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie> <20010323080736.A8221@gsmx07.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010323080736.A8221@gsmx07.alcatel.com.au>; from peter.jeremy@alcatel.com.au on Fri, Mar 23, 2001 at 08:07:36AM +1100 X-OS: FreeBSD 4.3-BETA X-PGP: finger wilko@freebsd.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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