PERFORCE change 180662 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Jul 8 19:52:34 UTC 2010


http://p4web.freebsd.org/@@180662?ac=10

Change 180662 by trasz at 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);
+}


More information about the p4-projects mailing list