diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 1997-04-11 21:18:04 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 1997-04-11 21:18:04 +0000 |
commit | ee9b7dd9acd7db882d25640eebc2409e2b43a58e (patch) | |
tree | 2fc3d6db2a959d709547a1f31ed3a3cc3bee35f9 /sys/arch/arc | |
parent | 46b059fa0a0783e4880b30b4161b296068675b12 (diff) |
If someone pressed a nonprintable character in getsn (eg in boot -c) the
speaker would be turned on but not off. So don't allow sysbeep until
timers works. -moj
Diffstat (limited to 'sys/arch/arc')
-rw-r--r-- | sys/arch/arc/isa/isabus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/arc/isa/isabus.c b/sys/arch/arc/isa/isabus.c index acce947fc7e..4dfa984ed6e 100644 --- a/sys/arch/arc/isa/isabus.c +++ b/sys/arch/arc/isa/isabus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isabus.c,v 1.9 1997/04/10 16:29:28 pefo Exp $ */ +/* $OpenBSD: isabus.c,v 1.10 1997/04/11 21:18:02 maja Exp $ */ /* $NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp $ */ /*- @@ -504,6 +504,10 @@ sysbeep(pitch, period) { static int last_pitch, last_period; int s; + extern int cold; + + if (cold) + return; /* Can't beep yet. */ if (beeping) untimeout(sysbeepstop, 0); |