Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2003 12:00:53 -0500
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Peter Wemm <peter@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 43329 for review 
Message-ID:  <200312031700.hB3H0saN001182@green.bikeshed.org>
In-Reply-To: Message from Peter Wemm <peter@FreeBSD.org>  <200312030112.hB31CUMd091141@repoman.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm <peter@FreeBSD.org> wrote:
> http://perforce.freebsd.org/chv.cgi?CH=43329
> 
> Change 43329 by peter@peter_overcee on 2003/12/02 17:12:26
> 
> 	grrr. this is totally broken if you have a serial console
> 	attached and as the primary console, as it prevents ddb
> 	starting up if you crash while running X on the syscons
> 	console.

How about we change them all to do something like this?  Yes, I'm aware that 
it contains levels of bogosity.  I'd actually rather change 
consdev::cn_flags to have a flag for CN_FLAG_UNAVAIL, and then cnunavail() 
would be easier to call "correctish".

(tty_cons.c)
int
cnunavail(void)
{
	struct cn_device *cnd;

	cnd = STAILQ_FIRST(&cn_devlist);
	return (cnd == NULL || (cons_unavail && 
	    bcmp(cnd->cn_name, "ttyv", 4) == 0));
}

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




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