Date: Sat, 17 Jan 2004 09:48:57 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Robert Watson <rwatson@FreeBSD.org> Cc: arch@FreeBSD.org Subject: Re: Signal delivery to kernel threads/processes? Message-ID: <20040117093324.M6180@gamplex.bde.org> In-Reply-To: <Pine.NEB.3.96L.1040116141843.94620G-100000@fledge.watson.org> References: <Pine.NEB.3.96L.1040116141843.94620G-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Jan 2004, Robert Watson wrote: > On Fri, 16 Jan 2004, Robert Watson wrote: > > > On Fri, 16 Jan 2004, Robert Watson wrote: > > > > > if (p->p_flag & P_SYSTEM) > > > return (EPERM); > > > > Another possible interpretation, not quite the same, might be to use > > P_KTHREAD. > > And, to add insult to injury by following up to my post yet another time: > init has P_SYSTEM set, so P_KTHREAD is a much better choice. Either that > or introduce a P_KERNEL flag. Setting P_SYSTEM for init is a bug. It also breaks debugging. Setting it for init seems to be just a bug in init_main.c 1.124. I have run without this setting for many years. I noticed the breakage mainly for "cat /proc/1/map". Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040117093324.M6180>