From owner-cvs-all Thu Mar 22 13: 8: 0 2001 Delivered-To: cvs-all@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 6685637B71D; Thu, 22 Mar 2001 13:07:48 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id IAA21172; Fri, 23 Mar 2001 08:07:40 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01K1J26ZOPU8RVW5E2@cim.alcatel.com.au>; Fri, 23 Mar 2001 08:07:38 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f2ML7aK08350; Fri, 23 Mar 2001 08:07:36 +1100 (EST envelope-from jeremyp) Content-return: prohibited Date: Fri, 23 Mar 2001 08:07:36 +1100 From: Peter Jeremy Subject: Re: cvs commit: src/sbin/reboot reboot.c In-reply-to: <200103212023.aa36148@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, Mar 21, 2001 at 08:23:35PM +0000 To: Ian Dowse Cc: "Justin T. Gibbs" , Robert Watson , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Mail-Followup-To: Ian Dowse , "Justin T. Gibbs" , Robert Watson , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <20010323080736.A8221@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <200103210507.f2L57rs76820@aslan.scsiguy.com> <200103212023.aa36148@salmon.maths.tcd.ie> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message