From owner-cvs-all Thu Mar 22 19:13:41 2001 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 87CA737B71E; Thu, 22 Mar 2001 19:13:29 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.2/8.11.2) with ESMTP id f2N3CtD01878; Fri, 23 Mar 2001 03:12:55 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2N3FgR04938; Fri, 23 Mar 2001 03:15:42 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200103230315.f2N3FgR04938@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Sergey Babkin Cc: Wilko Bulte , Ian Dowse , "Justin T. Gibbs" , Robert Watson , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/sbin/reboot reboot.c In-Reply-To: Message from Sergey Babkin of "Thu, 22 Mar 2001 20:06:35 EST." <3ABAA19B.6D5EF41B@bellatlantic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Mar 2001 03:15:42 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Wilko Bulte wrote: > > > > On Fri, Mar 23, 2001 at 08:07:36AM +1100, Peter Jeremy wrote: > > > > 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? > > No, it calls uadmin for actual reboot/shutdown. Under sysv the uadmin() args are determined by the signal that's sent to init. It's possible for any process (with the correct credentials) to call uadmin - I believe reboot and halt both call uadmin() directly. AFAIK the only thing on sysv that mucks around with killing processes and init scripts is init itself. > -SB -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message