mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 08:52:42 +01:00
Fix the panic message if init dies to show the exit status.
This commit is contained in:
parent
e47655c507
commit
5f7bd355f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3921
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user