The branch stable/13 has been updated by marius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ac0db253f94487305b4274372a18da79abeaf7a3

commit ac0db253f94487305b4274372a18da79abeaf7a3
Author:     Marius Strobl <[email protected]>
AuthorDate: 2023-08-06 19:54:57 +0000
Commit:     Marius Strobl <[email protected]>
CommitDate: 2024-01-05 21:53:04 +0000

    exit1(): Reword comment regarding init workaround
    
    There are other relatively common reasons why init might get killed
    during reboot, the workaround was really not sparc64-specific.
    
    (cherry picked from commit 96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a)
    (cherry picked from commit 28b36ecf990fc28a935ab2ce75f7504721c3a7ea)
---
 sys/kern/kern_exit.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index bfa3e70f878e..bd820aae8197 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -237,10 +237,11 @@ exit1(struct thread *td, int rval, int signo)
 
        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?
+        * In case we're rebooting we just let init die in order to
+        * work around an issues where pid 1 might get a fatal signal.
+        * For instance, if network interface serving NFS root is
+        * going down due to reboot, page-in requests for text are
+        * failing.
         */
        if (p == initproc && rebooting == 0) {
                printf("init died (signal %d, exit %d)\n", signo, rval);

Reply via email to