PERFORCE change 183154 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Aug 31 22:41:27 UTC 2010


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

Change 183154 by trasz at trasz_victim on 2010/08/31 22:40:54

	Fix thinko - after forking, we have exactly one thread.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_fork.c#22 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_fork.c#22 (text+ko) ====

@@ -365,7 +365,10 @@
 		error = EAGAIN;
 		goto fail;
 	}
-	error = rusage_add(newproc, RUSAGE_NTHR, 1);
+	/*
+	 * After fork, there is exactly one thread running.
+	 */
+	error = rusage_set(newproc, RUSAGE_NTHR, 1);
 	if (error) {
 		error = EAGAIN;
 		goto fail;


More information about the p4-projects mailing list