Date: Fri, 24 Dec 2010 11:20:24 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 187176 for review Message-ID: <201012241120.oBOBKOxf005013@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@187176?ac=10 Change 187176 by trasz@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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012241120.oBOBKOxf005013>