Signal delivery to kernel threads/processes?
Bruce Evans
bde at zeta.org.au
Fri Jan 16 14:49:19 PST 2004
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
More information about the freebsd-arch
mailing list