PERFORCE change 45454 for review
John Baldwin
jhb at FreeBSD.org
Fri Jan 16 11:20:51 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=45454
Change 45454 by jhb at jhb_slimer on 2004/01/16 11:19:46
Fudge the last patch to allow userland to send signals to init, but
not any other system processes.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_sig.c#83 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_sig.c#83 (text+ko) ====
@@ -1392,7 +1392,7 @@
/* kill single process */
if ((p = pfind(uap->pid)) == NULL)
return (ESRCH);
- if (p->p_pid <= 1 || p->p_flag & P_SYSTEM)
+ if (p->p_pid != 1 && p->p_flag & P_SYSTEM)
error = EPERM;
else
error = p_cansignal(td, p, uap->signum);
More information about the p4-projects
mailing list