mirror of https://github.com/sbt/sbt.git
On terminals with virtual io disabled, we'd spin up a thread for each watch iteration that performed a blocking read from the terminal input stream. This thread could not be joined which would cause the triggered execution to be delayed by 1 second while sbt blocked trying to join that thread. It also meant that input probably didn't work correctly since the user would end up with many threads polling from system in. The fix to this problem is to poll the terminal input stream if it is unsafe to do a blocking read, which is the case for dumb terminals or if virtual io is disabled. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||