From owner-p4-projects@FreeBSD.ORG Mon Oct 27 17:40:18 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CB2A41065682; Mon, 27 Oct 2008 17:40:18 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F3CD106567B for ; Mon, 27 Oct 2008 17:40:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 64CF48FC27 for ; Mon, 27 Oct 2008 17:40:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RHeIGY045593 for ; Mon, 27 Oct 2008 17:40:18 GMT (envelope-from ed@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9RHeIxX045591 for perforce@freebsd.org; Mon, 27 Oct 2008 17:40:18 GMT (envelope-from ed@FreeBSD.org) Date: Mon, 27 Oct 2008 17:40:18 GMT Message-Id: <200810271740.m9RHeIxX045591@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to ed@FreeBSD.org using -f From: Ed Schouten To: Perforce Change Reviews Cc: Subject: PERFORCE change 152034 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 17:40:19 -0000 http://perforce.freebsd.org/chv.cgi?CH=152034 Change 152034 by ed@ed_dull on 2008/10/27 17:40:08 Make sure we set dev_console_filename to NULL when cnremove() is being called. Affected files ... .. //depot/projects/mpsafetty/sys/kern/tty_cons.c#7 edit Differences ... ==== //depot/projects/mpsafetty/sys/kern/tty_cons.c#7 (text+ko) ==== @@ -204,6 +204,8 @@ STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { if (cnd->cnd_cn != cn) continue; + if (STAILQ_FIRST(&cn_devlist) == cnd) + ttyconsdev_select(NULL); STAILQ_REMOVE(&cn_devlist, cnd, cn_device, cnd_next); cnd->cnd_cn = NULL;