Subject: Re: On /dev/console, /dev/constty and the TIOCCONS ioctl
To: matthew green <mrg@eterna.com.au>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 10/03/2003 21:57:57
On Sat, Oct 04, 2003 at 06:39:20AM +1000, matthew green wrote:
> 
> 
> is there any particular reason you didn't discuss this rather
> large change before making it?  i'm entirely unsure that i
> like it at all...

I wouldn't call it large:
- add constty to rm command in MAKEDEV
- add mknod for constty im MAKEDEV
- change console to constty in /etc/ttys
- add 2 lines to init to do check if /dev/constty exists and use in
  instead on console for single user.
- add _PATH_CONSTTY to paths.h 'cos that is where /dev/console is defined
- make cons.c track vnodes properly if more than 1 minor opened
- add check for minor(dev) == 0 in cons.c before redirecting console to
  a pty, common up that test.

The only real pain is that I've two copies of the MAKEDEV files, and
had to fix merge fails on all of them in my main tree!

Not being able to have a login session on the 'console' while something
else is doing a TIOCCONS is a right, royal pain in the asre.

	David

-- 
David Laight: david@l8s.co.uk