Subject: Re: halt on panic [patch]
To: Hubert Feyrer <hubert@feyrer.de>
From: Frank van der Linden <fvdl@netbsd.org>
List: tech-kern
Date: 06/28/2004 18:39:38
On Mon, Jun 28, 2004 at 06:31:00PM +0200, Hubert Feyrer wrote:
> ===================================================================
> RCS file: /cvsroot/src/sys/kern/subr_prf.c,v
> retrieving revision 1.94
> diff -u -r1.94 subr_prf.c
> --- sys/kern/subr_prf.c 23 Mar 2004 13:22:04 -0000 1.94
> +++ sys/kern/subr_prf.c 28 Jun 2004 16:28:09 -0000
> @@ -191,6 +191,9 @@
> va_list ap;
>
> bootopt = RB_AUTOBOOT;
> +#ifdef HALT_ON_PANIC
> + bootopt |= RB_HALT;
> +#endif
> if (dumponpanic)
> bootopt |= RB_DUMP;
> if (doing_shutdown)
It'd better if that was a sysctl knob..
- Frank