kern_exit.c (96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a) kern_exit.c (28b36ecf990fc28a935ab2ce75f7504721c3a7ea)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 224 unchanged lines hidden (view full) ---

233 ksiginfo_t *ksi, *ksi1;
234 int signal_parent;
235
236 mtx_assert(&Giant, MA_NOTOWNED);
237 KASSERT(rval == 0 || signo == 0, ("exit1 rv %d sig %d", rval, signo));
238 TSPROCEXIT(td->td_proc->p_pid);
239
240 p = td->td_proc;
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 224 unchanged lines hidden (view full) ---

233 ksiginfo_t *ksi, *ksi1;
234 int signal_parent;
235
236 mtx_assert(&Giant, MA_NOTOWNED);
237 KASSERT(rval == 0 || signo == 0, ("exit1 rv %d sig %d", rval, signo));
238 TSPROCEXIT(td->td_proc->p_pid);
239
240 p = td->td_proc;
241 if (p == initproc) {
241 /*
242 * In case we're rebooting we just let init die in order to
243 * work around an issues where pid 1 might get a fatal signal.
244 * For instance, if network interface serving NFS root is
245 * going down due to reboot, page-in requests for text are
246 * failing.
247 */
248 if (p == initproc && rebooting == 0) {
242 printf("init died (signal %d, exit %d)\n", signo, rval);
243 panic("Going nowhere without my init!");
244 }
245
246 /*
247 * Process deferred operations, designated with ASTF_KCLEAR.
248 * For instance, we need to deref SU mp, since the thread does
249 * not return to userspace, and wait for geom to stabilize.

--- 1216 unchanged lines hidden ---
249 printf("init died (signal %d, exit %d)\n", signo, rval);
250 panic("Going nowhere without my init!");
251 }
252
253 /*
254 * Process deferred operations, designated with ASTF_KCLEAR.
255 * For instance, we need to deref SU mp, since the thread does
256 * not return to userspace, and wait for geom to stabilize.

--- 1216 unchanged lines hidden ---