summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-02-08 02:56:10 +0000
committerpeter <peter@FreeBSD.org>2002-02-08 02:56:10 +0000
commit4f71c6828be615c8d223ffb858a47c1b01372934 (patch)
tree94c5cb932f0ddda0a00259c104c75559934a8b2e /sys/kern
parentf67ec8651dace42e8922d21f2943b9d9f62f56c7 (diff)
downloadFreeBSD-src-4f71c6828be615c8d223ffb858a47c1b01372934.zip
FreeBSD-src-4f71c6828be615c8d223ffb858a47c1b01372934.tar.gz
Fix a fatal trap when using ksched_setscheduler() (eg: mozilla, netscape
etc) which use: td->td_last_kse->ke_flags |= KEF_NEEDRESCHED;
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index e3be9a1..54caef2 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -122,7 +122,7 @@ thread_link(struct thread *td, struct ksegrp *kg)
td->td_proc = p;
td->td_ksegrp = kg;
- td->td_last_kse = NULL;
+ td->td_last_kse = &p->p_kse;
TAILQ_INSERT_HEAD(&p->p_threads, td, td_plist);
TAILQ_INSERT_HEAD(&kg->kg_threads, td, td_kglist);
OpenPOWER on IntegriCloud