Signal delivery to kernel threads/processes?

Robert Watson rwatson at FreeBSD.org
Fri Jan 16 11:21:30 PST 2004


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. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org      Senior Research Scientist, McAfee Research



More information about the freebsd-arch mailing list