Date: Fri, 23 Mar 2001 03:15:42 +0000 From: Brian Somers <brian@Awfulhak.org> To: Sergey Babkin <babkin@bellatlantic.net> Cc: Wilko Bulte <wkb@freebie.demon.nl>, Ian Dowse <iedowse@maths.tcd.ie>, "Justin T. Gibbs" <gibbs@scsiguy.com>, Robert Watson <rwatson@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <200103230315.f2N3FgR04938@hak.lan.Awfulhak.org> In-Reply-To: Message from Sergey Babkin <babkin@bellatlantic.net> of "Thu, 22 Mar 2001 20:06:35 EST." <3ABAA19B.6D5EF41B@bellatlantic.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103230315.f2N3FgR04938>