Re: Opinions on removing /proc/tty?

From: Albert Cahalan
Date: Sun Jul 09 2006 - 15:55:31 EST


On 7/9/06, Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:

So it basically breaks on 2.x kernels because (eg) you don't include major
204 as a tty major. Plus, if you insist that there are only N tty major
numbers, you break as soon as another tty major gets added.

Try again.

I'm kidding of course. Putting the names in a file is crap.
This is what procps-1.x.xx did long ago. Everybody hated it.
You'll never handle chroot correctly.

Just do /proc/*/tty links and all will be good. This even
handles the case of two different names for the same dev_t.

If people seriously want to bring back the crap, then I can
design something tolerable. It would support mmap MAP_SHARED,
allowing live updates so that "top" can work nicely.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/