summaryrefslogtreecommitdiff
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-04-23 02:32:32 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-04-23 02:32:32 +0000
commit21fc3164307dc288ff6eb1f028a268f3c76cc6e5 (patch)
treee8274d07cfba3da625ef093c47b41f515a3a074f /sys/kern/kern_thread.c
parent0a5660df88347961063dfcef88f0712b672661c7 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index dd8f80ca8ce2..6ed7ffbae14e 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -258,6 +258,8 @@ ksegrp_unlink(struct ksegrp *kg)
/*
* Aggregate stats from the KSE
*/
+ if (p->p_procscopegrp == kg)
+ p->p_procscopegrp = NULL;
}
/*
@@ -990,6 +992,7 @@ thread_single_end(void)
p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_SINGLE_BOUNDARY);
mtx_lock_spin(&sched_lock);
p->p_singlethread = NULL;
+ p->p_procscopegrp = NULL;
/*
* If there are other threads they mey now run,
* unless of course there is a blanket 'stop order'