PERFORCE change 187176 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Fri Dec 24 11:20:24 UTC 2010
http://p4web.freebsd.org/@@187176?ac=10
Change 187176 by trasz at trasz_victim on 2010/12/24 11:19:23
Fix error handling.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#44 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#44 (text+ko) ====
@@ -547,7 +547,13 @@
error = hrl_proc_fork(parent, child);
if (error != 0) {
mtx_lock(&container_lock);
- container_destroy(&child->p_container);
+ /*
+ * XXX: The only purpose of these two lines is to prevent from
+ * tripping checks in container_destroy().
+ */
+ for (i = 0; i <= RUSAGE_MAX; i++)
+ rusage_set_locked(child, i, 0);
+ container_destroy_locked(&child->p_container);
mtx_unlock(&container_lock);
}
}
More information about the p4-projects
mailing list