PERFORCE change 91442 for review

Rob Deker deker at FreeBSD.org
Thu Feb 9 18:50:56 GMT 2006


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

Change 91442 by deker at deker_build1.columbia.sparta.com on 2006/02/09 18:50:45

	per millert:
	
	"Call mac_destroy_proc() after process has been removed from
	 global process list. From DSEP (mdodd)."
	
	Submitted by: millert

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/bsd/kern/kern_exit.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/bsd/kern/kern_exit.c#4 (text+ko) ====

@@ -713,9 +713,6 @@
 			if (tvp)
 				vrele(tvp);
 
-#ifdef MAC
-			mac_destroy_proc(p);
-#endif
 			/*
 			 * Finally finished with old proc entry.
 			 * Unlink it from its process group and free it.
@@ -725,6 +722,9 @@
 			LIST_REMOVE(p, p_list);	/* off zombproc */
 			LIST_REMOVE(p, p_sibling);
 			p->p_flag &= ~P_WAITING;
+#ifdef MAC
+			mac_destroy_proc(p);
+#endif
 			FREE_ZONE(p, sizeof *p, M_PROC);
 			nprocs--;
 			wakeup(&p->p_stat);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list