Subject: capturing kernel console messages
To: None <tech-kern@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 08/22/2003 20:57:23
I've been trying to capture kernel comsole messages hwne sysinst is
running in order to stop them messing up the screen, and being able to
display them sensibly.

However adding:
	ioctl(slave, TIOCCONS, &one);
to the slave side of the pseudo tty (sysinst already uses one) seems to
cause the process to lock up waiting on TTYOUT.

My suspicions are that the programs own output to its tty are also
being intercepted - since that is also the console.
However the code is rather IO challenged so I'm not exactly sure!

Should this work?

	David

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