minix/minix
David van Moolenbroek 27d0ecdb62 VFS: unbreak select on /dev/tty
The remapping from /dev/tty to the real controlling terminal in the
device code was confusing the select code.  The latter is now aware
of this case and should handle it properly, at the cost of one extra
field in the filp structure.

There is a nasty, hopefully sufficiently rare case of /dev/tty being
kept open while controlling terminals are changing, that we are still
not handling.  Doing so would require more than just a few changes,
but the code should at least detect and cleanly fail on this case.

Test77 now has a basic test set for selecting on /dev/tty.

Change-Id: Iaedea449cdb728d0e66a9de8faacdfd9638dfe92
2014-08-28 16:30:48 +00:00
..
benchmarks New sources layout 2014-07-31 16:00:30 +02:00
bin New sources layout 2014-07-31 16:00:30 +02:00
commands ps: fix reported run time 2014-08-24 09:22:36 +00:00
drivers PTY: let closed master cause EOF on slave 2014-08-28 16:30:25 +00:00
fs Move all services to /service 2014-07-31 16:00:31 +02:00
include netbsd ping & traceroute 2014-08-21 08:07:39 -04:00
kernel arm am335x: disable watchdog timer on bootup 2014-08-22 14:30:49 +02:00
lib netbsd ping & traceroute 2014-08-21 08:07:39 -04:00
llvm Remove /multiboot 2014-07-31 16:00:31 +02:00
man Removal of commands fix: Keep builtin man pages. 2014-08-22 12:34:48 +02:00
net Fix -DNDEBUG support 2014-08-22 19:12:17 +02:00
sbin New sources layout 2014-07-31 16:00:30 +02:00
servers VFS: unbreak select on /dev/tty 2014-08-28 16:30:48 +00:00
share New sources layout 2014-07-31 16:00:30 +02:00
tests VFS: unbreak select on /dev/tty 2014-08-28 16:30:48 +00:00
usr.bin uptime(1): also report uptime 2014-08-28 12:06:50 +00:00
usr.sbin INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
Makefile INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
Makefile.inc New sources layout 2014-07-31 16:00:30 +02:00