Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2008 10:52:09 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 152090 for review
Message-ID:  <200810281052.m9SAq9sm093521@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152090

Change 152090 by ed@ed_dull on 2008/10/28 10:51:10

	It turns out we have console devices on our system that may have
	no TTY associated with them. Don't panic when our primary
	console device has no TTY associated.

Affected files ...

.. //depot/projects/mpsafetty/sys/kern/tty.c#62 edit

Differences ...

==== //depot/projects/mpsafetty/sys/kern/tty.c#62 (text+ko) ====

@@ -1769,8 +1769,9 @@
 	}
 	sx_sunlock(&tty_list_sx);
 
+	/* System console has no TTY associated. */
 	if (dev_console->si_drv1 == NULL)
-		panic("Device driver uses name of nonexistent TTY");
+		return (ENXIO);
 	
 	return (ttydev_open(dev, oflags, devtype, td));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810281052.m9SAq9sm093521>