Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
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
bin Import NetBSD w(1) and uptime(1) 2014-08-27 10:13:37 +00:00
common Fix -DNDEBUG support 2014-08-22 19:12:17 +02:00
distrib Import NetBSD w(1) and uptime(1) 2014-08-27 10:13:37 +00:00
docs Clearing history in docs/UPDATING 2014-08-01 14:58:40 +02:00
etc Update usr/Makefile 2014-08-14 19:02:53 +02:00
external Fixes for -O3 with GCC 2014-08-24 09:24:33 +00:00
games Importing games/colorbars 2014-07-28 17:05:50 +02:00
gnu Update download urls in fetch.sh 2014-08-07 14:27:32 +02:00
include New sources layout 2014-07-31 16:00:30 +02:00
lib New sources layout 2014-07-31 16:00:30 +02:00
libexec LLVM Minix changes 2014-07-28 17:05:59 +02:00
minix VFS: unbreak select on /dev/tty 2014-08-28 16:30:48 +00:00
releasetools releasetools/Makefile: updates 2014-08-21 10:59:26 +02:00
sbin INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
share TOOL_TIC: Set to "/usr/bin/tic", instead of "tic" 2014-08-13 16:42:56 +02:00
sys tty/pty: change back default CERASE to ^H 2014-08-28 16:28:54 +00:00
tests LLVM Minix changes 2014-07-28 17:05:59 +02:00
tools New sources layout 2014-07-31 16:00:30 +02:00
usr.bin uptime(1): also report uptime 2014-08-28 12:06:50 +00:00
usr.sbin netbsd ping & traceroute 2014-08-21 08:07:39 -04:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00