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
2010-10-25 08:32:14 +00:00
2012-03-14 16:54:30 +01:00
2011-11-18 11:11:04 +01:00
2012-04-02 16:32:32 +02:00
2012-04-12 03:02:21 +02:00
2012-04-03 01:15:36 +02:00
2012-04-13 12:54:02 +00:00
2012-04-13 12:54:02 +00:00
2012-04-12 13:26:24 +02:00
2012-04-12 13:26:24 +02:00
2012-04-11 20:02:15 +02:00
2012-04-12 03:03:17 +02:00
2012-04-12 13:26:24 +02:00
2012-04-11 20:02:15 +02:00
2010-01-21 10:16:05 +00:00
2012-04-01 03:45:02 +02:00
Description
A fun microkernel meant to match modern usecases
GPL-3.0 148 MiB
Languages
C 78.2%
Roff 10.2%
Assembly 4.6%
Shell 3.7%
Makefile 1.6%
Other 1.2%