Date: Fri, 16 Jan 2004 11:20:41 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 45454 for review Message-ID: <200401161920.i0GJKfJh014564@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45454 Change 45454 by jhb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401161920.i0GJKfJh014564>