about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-04 15:45:46 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-04 15:48:34 -0800
commit615444d26306ddaf62388c73ae1dc17e48b3b2e3 (patch)
tree72784f8711c06637bafd38f93dcfdc23c6a5a423 /src/rt/sync/rust_thread.cpp
parent658637baf45b41e4cff049440bc07f267d810218 (diff)
downloadrust-615444d26306ddaf62388c73ae1dc17e48b3b2e3.tar.gz
rust-615444d26306ddaf62388c73ae1dc17e48b3b2e3.zip
Stop extra buffering when stdout isn't a tty
Right now if you're running a program with its output piped to some location and
the program decides to go awry, when you kill the program via some signal none
of the program's last 4K of output will get printed to the screen. In theory the
solution to this would be to register a signal handler as part of the runtime
which then flushes the output stream.

I believe that the current behavior is far enough from what's expected that we
shouldn't be providing this sort of "super buffering" by default when stdout
isn't attached to a tty.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions