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 ()
Previous text:
2003-03-19 13:47: Subject: I/O callbacks in blocking mode
No, what I was saying was that the deadlock only occurs if you read from another thread. Why protect the user from that by making Readline unusable, as an example?
/ Per Hedbor ()