On Wed, Oct 27, 2010 at 01:50:45AM +0100, Al Viro wrote:
What is kidding about this user space problem? Currently
there is no way to detect the terminal lines used for the
system console. Running on /dev/console an application
has to steal the controlling tty to detect the preferred
terminal line of the system console (and only the preferred
line). Last week the author of systemd had asked me why
the TIOCGDEV patch was not send upstream. I've told him
that this was done but that several patches were never
accepted upstream, compare with:
http://lkml.org/lkml/2000/12/15/160
and the follow ups there. Even more the author of the old
SysVinit had run into the same problem:
http://lkml.org/lkml/1998/3/21/57
It seems to me that the list of the terminal devices of
the system consoles are useful in user space as Randy
Dunlap tolds me here
http://article.gmane.org/gmane.linux.kernel.api/1653
Such a list would be very helpful e.g. to extend sulogin
to be able to prompt for maintenance on all terminal lines
of the system console after e.g. failed fsck. Currently
only the preferred terminal line is prompted for maintenance.
depends on ;)
Werner
--
System V style init programs - http://savannah.nongnu.org/projects/sysvinit/
--