mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Merged from kern_thread.c 1.113, avoid a panic in cpu_throw when the first
thread of a multithreaded process exits. This unrelated and possibly wrong change was not mentioned in the commit message for kern_thread.c 1.113.
This commit is contained in:
parent
08312d8f48
commit
a12efae1ea
1 changed files with 2 additions and 0 deletions
|
|
@ -101,7 +101,9 @@ thr_exit1(void)
|
|||
PROC_UNLOCK(p);
|
||||
td->td_kse = NULL;
|
||||
td->td_state = TDS_INACTIVE;
|
||||
#if 0
|
||||
td->td_proc = NULL;
|
||||
#endif
|
||||
td->td_ksegrp = NULL;
|
||||
td->td_last_kse = NULL;
|
||||
thread_stash(td);
|
||||
|
|
|
|||
Loading…
Reference in a new issue