Date: Thu, 8 Jul 2010 19:52:34 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 180662 for review Message-ID: <201007081952.o68JqYVb000573@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@180662?ac=10 Change 180662 by trasz@trasz_victim on 2010/07/08 19:52:08 Reorder two routines for cosmetic reasons. Affected files ... .. //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#13 edit Differences ... ==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#13 (text+ko) ==== @@ -407,22 +407,6 @@ } } -void -container_proc_exit(struct proc *p) -{ - /* - * XXX: Free these three some other way. - */ - rusage_set(p, RUSAGE_FILESIZE, 0); - rusage_set(p, RUSAGE_COREDUMPSIZE, 0); - rusage_set(p, RUSAGE_PTY, 0); - -#ifdef HRL - hrl_proc_exit(p); -#endif - container_destroy(&p->p_container); -} - /* * Inherit resource usage information and containing containers * from the parent process. @@ -502,3 +486,19 @@ return (error); } + +void +container_proc_exit(struct proc *p) +{ + /* + * XXX: Free these three some other way. + */ + rusage_set(p, RUSAGE_FILESIZE, 0); + rusage_set(p, RUSAGE_COREDUMPSIZE, 0); + rusage_set(p, RUSAGE_PTY, 0); + +#ifdef HRL + hrl_proc_exit(p); +#endif + container_destroy(&p->p_container); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007081952.o68JqYVb000573>