From a12efae1ea6db61008368ace1fbcfcef12a69e4e Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Tue, 8 Apr 2003 08:13:47 +0000 Subject: [PATCH] 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. --- sys/kern/kern_thr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 5f23f6dfcae..6e277daef9e 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -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);