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:
parent
aafdbb39dc
commit
de9ac44a24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90381
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user