Reading from /dev/stdin will block
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 24 Mar 2012 01:17:37 +0000 (18:17 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sat, 24 Mar 2012 01:17:37 +0000 (18:17 -0700)
commita68c5d481306d1fbac3e36af49464877e026d8a2
treee6aaca640941e73ef77d8ce0cbe162425f7127f1
parent842885adeef121afeb32d5290c55bee5636f270a
Reading from /dev/stdin will block

We read one char at a time now (per syscall).  busybox asks for up to
1023, interestingly enough.  It also doesn't know it is a tty yet, so
I'm sure its behavior will change.  Note that we already fake a bunch of
TTY related things.  Not sure who is supposed to echo the key btw...

And we don't do anything like sending SIGINT or control characters.
kern/src/devfs.c