PERFORCE change 75236 for review

David Xu davidxu at FreeBSD.org
Fri Apr 15 02:32:53 PDT 2005


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

Change 75236 by davidxu at davidxu_celeron on 2005/04/15 09:32:16

	small tweak.

Affected files ...

.. //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#14 edit
.. //depot/projects/davidxu_thread/src/sys/kern/kern_thread.c#8 edit

Differences ...

==== //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#14 (text+ko) ====

@@ -295,11 +295,10 @@
 		sched_fork_ksegrp(td, newkg);
 	sched_fork_thread(td, newtd);
 	TD_SET_CAN_RUN(newtd);
-	if ((uap->flags & THR_SUSPENDED) == 0)
+	if ((param.flags & THR_SUSPENDED) == 0)
 		setrunqueue(newtd, SRQ_BORING);
 	mtx_unlock_spin(&sched_lock);
 
-out:
 	return (error);
 }
 
@@ -330,8 +329,10 @@
 		suword((void *)uap->state, 1);
 
 	PROC_LOCK(p);
+	#if 0
 	SIGFILLSET(td->td_siglist);
 	sigrepost(td);
+	#endif
 	mtx_lock_spin(&sched_lock);
 	/*
 	 * Shutting down last thread in the proc.  This will actually

==== //depot/projects/davidxu_thread/src/sys/kern/kern_thread.c#8 (text+ko) ====

@@ -258,6 +258,8 @@
 	/*
 	 * Aggregate stats from the KSE
 	 */
+	if (p->p_procscopegrp == kg)
+		p->p_procscopegrp = NULL;
 }
 
 /*


More information about the p4-projects mailing list