PERFORCE change 156691 for review
John Baldwin
jhb at FreeBSD.org
Mon Jan 26 07:32:09 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=156691
Change 156691 by jhb at jhb_jhbbsd on 2009/01/26 15:32:04
bde@ has better fixes that Ed is looking at.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_sig.c#145 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_sig.c#145 (text+ko) ====
@@ -1686,10 +1686,7 @@
return (ESRCH);
}
AUDIT_ARG(process, p);
- if (p->p_pid != 1 && p->p_flag & P_SYSTEM)
- error = EPERM;
- else
- error = p_cansignal(td, p, uap->signum);
+ error = p_cansignal(td, p, uap->signum);
if (error == 0 && uap->signum)
psignal(p, uap->signum);
PROC_UNLOCK(p);
@@ -2486,7 +2483,7 @@
/*
* Don't take default actions on system processes.
*/
- if (p->p_pid <= 1 || p->p_flag & P_SYSTEM) {
+ if (p->p_pid <= 1) {
#ifdef DIAGNOSTIC
/*
* Are you sure you want to ignore SIGSEGV
More information about the p4-projects
mailing list