PERFORCE change 61665 for review

Julian Elischer julian at FreeBSD.org
Thu Sep 16 22:48:05 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=61665

Change 61665 by julian at julian_ref on 2004/09/17 05:47:04

	Catch an instance of using numthreads for libthr instead of 
	the flag.

Affected files ...

.. //depot/projects/nsched/sys/kern/kern_thread.c#38 edit

Differences ...

==== //depot/projects/nsched/sys/kern/kern_thread.c#38 (text+ko) ====

@@ -1057,7 +1057,7 @@
 
 	p = td->td_proc;
 	mtx_assert(&sched_lock, MA_OWNED);
-	if (p->p_flag & P_SA || p->p_numthreads > 1) {
+	if (p->p_flag & P_HADTHREADS) {
 		if ((p->p_flag & P_SINGLE_EXIT) && p->p_singlethread != td)
 			return (EINTR);
 		if (td->td_flags & TDF_INTERRUPT)


More information about the p4-projects mailing list