Date: Thu, 7 Sep 2006 14:01:53 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 105790 for review Message-ID: <200609071401.k87E1rav017953@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105790 Change 105790 by millert@millert_g5tower on 2006/09/07 14:01:08 Use WTERMSIG macro instead of doing it by hand. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#14 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#14 (text+ko) ==== @@ -1760,12 +1760,11 @@ static int sebsd_proc_check_wait(struct ucred *cred, struct proc *proc) { - u_int32_t perm, exit_status; + u_int32_t perm; + int signum; - exit_status = proc->p_xstat; // (promote to 32 btis) - exit_status &= 0177; - - perm = signal_to_av(exit_status); + signum = WTERMSIG(proc->p_xstat); + perm = signal_to_av(signum); return (cred_has_perm(cred, proc, perm)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609071401.k87E1rav017953>