summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-27 05:21:39 +0000
committerphk <phk@FreeBSD.org>1994-10-27 05:21:39 +0000
commitf4fb66c724a28065bc73d521bb3417ee2b5ef2b7 (patch)
tree56105117077d7e39285d63a61609ea0edfbf8e57 /sys
parent67c17d90f1d498c709d2c3b88316d2820289f330 (diff)
downloadFreeBSD-src-f4fb66c724a28065bc73d521bb3417ee2b5ef2b7.zip
FreeBSD-src-f4fb66c724a28065bc73d521bb3417ee2b5ef2b7.tar.gz
Fix the panic message if init dies to show the exit status.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_exit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 1b91a24..61eb984 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
- * $Id: kern_exit.c,v 1.10 1994/10/09 21:53:49 sos Exp $
+ * $Id: kern_exit.c,v 1.11 1994/10/11 20:42:01 sos Exp $
*/
#include <sys/param.h>
@@ -102,9 +102,11 @@ exit1(p, rv)
register struct proc **pp;
register struct vmspace *vm;
- if (p->p_pid == 1)
- panic("init died (signal %d, exit %d)",
+ if (p->p_pid == 1) {
+ printf("init died (signal %d, exit %d)\n",
WTERMSIG(rv), WEXITSTATUS(rv));
+ panic("Going nowhere without my init!");
+ }
#ifdef PGINPROF
vmsizmon();
#endif
OpenPOWER on IntegriCloud