Date: Mon, 26 Jan 2009 15:32:06 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 156691 for review Message-ID: <200901261532.n0QFW6Cs034731@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156691 Change 156691 by jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261532.n0QFW6Cs034731>