Fix the panic message if init dies to show the exit status.

This commit is contained in:
Poul-Henning Kamp 1994-10-27 05:21:39 +00:00
parent e47655c507
commit 5f7bd355f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3921

View File

@ -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