Subject: Re: [PATCH] new option BEEP_ONHALT_FOREVER
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: =?ISO-8859-2?Q?M=E1ty=E1s_J=E1nos?= <jani@xoftware.de>
List: tech-kern
Date: 05/21/2006 18:19:09
This is a multi-part message in MIME format.

--Multipart=_Sun__21_May_2006_18_19_09_+0200_gkufc9VBzRB2SGna
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Sat, 20 May 2006 23:54:29 +0200
"Julio M. Merino Vidal" <jmmv84@gmail.com> wrote:

> I think it'd be better if the check against -1 was done at run time
> rather than during build time.  Ideally, this functionality could be
> configured through sysctl (I wanted to do it, but haven't had the time
> yet) and, in that situation, it needs to be checked at run time to
> work properly.
> 
> Also, when patching manual pages, each sentence should begin in its
> own line.  And for changes like this, you should bump the date stored
> in it.

Hi,

I attached a newer version. This little patch provides the missing
functionality and hope it's already committable.  I leave the sysctl
work to somebody else who is more familiar with NetBSD kernel
programming. For me it's good enough to set it at compilation time.

--Multipart=_Sun__21_May_2006_18_19_09_+0200_gkufc9VBzRB2SGna
Content-Type: application/octet-stream;
 name="netbsd_beep_onhalt_forever_v3.diff"
Content-Disposition: attachment;
 filename="netbsd_beep_onhalt_forever_v3.diff"
Content-Transfer-Encoding: base64

SW5kZXg6IHNoYXJlL21hbi9tYW40L29wdGlvbnMuNAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zz
cm9vdC9zcmMvc2hhcmUvbWFuL21hbjQvb3B0aW9ucy40LHYKcmV0cmlldmluZyByZXZpc2lvbiAx
LjI2OC4yLjQKZGlmZiAtdSAtdSAtcjEuMjY4LjIuNCBvcHRpb25zLjQKLS0tIHNoYXJlL21hbi9t
YW40L29wdGlvbnMuNAk2IERlYyAyMDA1IDIwOjA5OjQ2IC0wMDAwCTEuMjY4LjIuNAorKysgc2hh
cmUvbWFuL21hbjQvb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