Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2005 09:32:51 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 75236 for review
Message-ID:  <200504150932.j3F9Wp3l051462@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=75236

Change 75236 by davidxu@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;
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504150932.j3F9Wp3l051462>