minix/drivers/tty
Thomas Veerman ca7a466f48 TTY: don't allow multiple readers on tty minor
TTY has no way of keeping track of multiple readers for a tty minor
device. Instead, it stores a read request for the last reader only.
Consequently, the first ("overwritten") reader gets stuck on a read
request that's never going to be finished. Also, the overwriting
causes a grant mismatch in VFS when TTY returns a reply for the
second reader.

This patch is a work around for the actual problem (i.e., keeping track
of multiple readers). It checks whether there is a read operation in
progress and returns an error if it is --preventing that reader from
getting overwritten and stuck. It fixes a bug triggered by executing
'top | more' and pressing the space bar for a while (easily reproducable
in a VM, not on hardware).
2012-04-13 13:22:13 +00:00
..
keymaps portugese keymap 2012-02-18 02:05:04 +01:00
console.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
keyboard.c TTY: don't allow multiple readers on tty minor 2012-04-13 13:22:13 +00:00
Makefile Remove obsolete INSTALLFLAGS from makefiles 2012-02-16 23:26:38 +01:00
pty.c TTY: don't allow multiple readers on tty minor 2012-04-13 13:22:13 +00:00
rs232.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
tty.c TTY: don't allow multiple readers on tty minor 2012-04-13 13:22:13 +00:00
tty.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00