diff options
author | jake <jake@FreeBSD.org> | 2003-04-08 08:13:47 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-04-08 08:13:47 +0000 |
commit | d3a6b05ded27c4c27a1bfcfbb11c46275158b60a (patch) | |
tree | 6295cf1dafc3254a534d11a96c4e1215e0e15d0f /sys/kern/kern_thr.c | |
parent | 8568dcf658fe1a574149d8272cff160df5654c5c (diff) | |
download | FreeBSD-src-d3a6b05ded27c4c27a1bfcfbb11c46275158b60a.zip FreeBSD-src-d3a6b05ded27c4c27a1bfcfbb11c46275158b60a.tar.gz |
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.
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 5f23f6d..6e277da 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); |