PERFORCE change 105790 for review

Todd Miller millert at FreeBSD.org
Thu Sep 7 14:01:54 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=105790

Change 105790 by millert at 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));
 }
 


More information about the p4-projects mailing list