Date: Thu, 9 Feb 2006 18:50:56 GMT From: Rob Deker <deker@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 91442 for review Message-ID: <200602091850.k19IouIc027236@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91442 Change 91442 by deker@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602091850.k19IouIc027236>