]> git.lizzy.rs Git - rust.git/commit
Fall back from uv tty instances more aggressively
authorAlex Crichton <alex@alexcrichton.com>
Thu, 7 Nov 2013 23:24:30 +0000 (15:24 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 10 Nov 2013 09:37:11 +0000 (01:37 -0800)
commitb652bbc6700e36c9ad80105c89d7fc2e3afec111
treed204a6217cfb8dbc41fdc44346a779ee60665924
parentdf4c0b8e4349d50f317553de5a47d0cd56cdc227
Fall back from uv tty instances more aggressively

It appears that uv's support for interacting with a stdio stream as a tty when
it's actually a pipe is pretty problematic. To get around this, promote a check
to see if the stream is a tty to the top of the tty constructor, and bail out
quickly if it's not identified as a tty.

Closes #10237
src/librustuv/tty.rs
src/librustuv/uvll.rs
src/libstd/rt/io/stdio.rs
src/libstd/rt/rtio.rs