aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2023-08-06 19:54:57 +0000
committerMarius Strobl <marius@FreeBSD.org>2023-08-06 20:26:01 +0000
commit96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a (patch)
tree32968dd07a851a1ad4d105cd16d33fde875661ed
parentba3c1f5972d7b90feb6e6da47905ff2757e0fe57 (diff)
downloadsrc-96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a.tar.gz
src-96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a.zip
exit1(): Revert sparc64 workaround
If this still is a problem on other architectures, it should be fixed properly. This reverts commit 5486ffc898503a846ecaf3f5ef9f9269beb4540e.
-rw-r--r--sys/kern/kern_exit.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index cb0939ded6e1..e3345c14df26 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -238,13 +238,7 @@ exit1(struct thread *td, int rval, int signo)
TSPROCEXIT(td->td_proc->p_pid);
p = td->td_proc;
- /*
- * XXX in case we're rebooting we just let init die in order to
- * work around an unsolved stack overflow seen very late during
- * shutdown on sparc64 when the gmirror worker process exists.
- * XXX what to do now that sparc64 is gone... remove if?
- */
- if (p == initproc && rebooting == 0) {
+ if (p == initproc) {
printf("init died (signal %d, exit %d)\n", signo, rval);
panic("Going nowhere without my init!");
}