Subject: Serial console causing "crash"
To: None <thrashbarg@kaput.homeunix.org>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: port-i386
Date: 09/05/2004 15:31:30
On Mon, Sep 06, 2004 at 04:28:00AM +0930, thrashbarg@kaput.homeunix.org wrote:
> I've been running NetBSD on an old box as a server for a while now
> with a serial console. The problem is if I turn off the machine I'm
> using as a terminal while the serial cable is in it, the server dropps
> into the kernel debugger. 

That's not a "crash".  The default DDB configuration is to enter the
debugger when it sees BREAK on the console serial line.  Cheap serial
hardware often sends a BREAK when you turn it off, unfortunately; real
terminals generally don't.

You can use sysctl to change the value of hw.cnmagic to something other
than BREAK to avoid this problem.

-- 
 Thor Lancelot Simon	                                      tls@rek.tjls.com
   But as he knew no bad language, he had called him all the names of common
 objects that he could think of, and had screamed: "You lamp!  You towel!  You
 plate!" and so on.              --Sigmund Freud