From owner-cvs-all Thu Mar 22 14: 7:56 2001 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 57CBB37B71A; Thu, 22 Mar 2001 14:07:50 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from gosset.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 22 Mar 2001 22:07:49 +0000 (GMT) To: Peter Jeremy Cc: Ian Dowse , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, iedowse@maths.tcd.ie Subject: Re: cvs commit: src/sbin/reboot reboot.c In-Reply-To: Your message of "Fri, 23 Mar 2001 08:07:36 +1100." <20010323080736.A8221@gsmx07.alcatel.com.au> Date: Thu, 22 Mar 2001 22:07:49 +0000 From: Ian Dowse Message-ID: <200103222207.aa91848@salmon.maths.tcd.ie> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010323080736.A8221@gsmx07.alcatel.com.au>, Peter Jeremy writes: > >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). This had certainly crossed my mind too, but for reasons already suggested, it doesn't seem the right thing to do. I'm not convinced that libutil is the right place for such code either - it's not useful enough to appear in a fairly widely-used library. Two other not-so-elegant approaches are: - Share a source file between reboot and init. - Make reboot(8) and halt(8) hard links to init(8), and have init do the right thing according to argv[0]. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message