Fix a fatal trap when using ksched_setscheduler() (eg: mozilla, netscape

etc) which use:  td->td_last_kse->ke_flags |= KEF_NEEDRESCHED;
This commit is contained in:
Peter Wemm 2002-02-08 02:56:10 +00:00
parent aafdbb39dc
commit de9ac44a24

View File

@ -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);