You really mean stdin, not tty:s in general, right? At least I'm not aware of any problem opening /dev/tty and setting it in nonblocking mode.
Setting stdio fd:s into non-blocking mode is always more or less unfriendly to the environment.
/ Niels Möller ()
Previous text:
2003-03-19 13:48: Subject: I/O callbacks in blocking mode
Or if not unusable, at least higly dangerous. Using nonblocking read on a terminal causes the terminal to be closed if the program exits without setting the FD back to blocking mode.
/ Per Hedbor ()