diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-06 18:29:58 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-06 18:29:58 -0800 |
| commit | 3bd0338c19a594d538bc6dd4656c0cb8da9b9680 (patch) | |
| tree | 2e50f33f5a8259655bba7fc3cc9b35d9bd800da7 /src/rt/rust_srv.cpp | |
| parent | 5563eab22709b2fbb0d737bcf62d740217a5718a (diff) | |
| download | rust-3bd0338c19a594d538bc6dd4656c0cb8da9b9680.tar.gz rust-3bd0338c19a594d538bc6dd4656c0cb8da9b9680.zip | |
Revert "log to stderr instead of stdout"
This is causing mysterious hangs on windows. Issue #1769. This reverts commit d65eabd5de4c41e4bc93b9c6c03d6278299ceb76.
Diffstat (limited to 'src/rt/rust_srv.cpp')
| -rw-r--r-- | src/rt/rust_srv.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rt/rust_srv.cpp b/src/rt/rust_srv.cpp index 9192af511d9..758174a4ebb 100644 --- a/src/rt/rust_srv.cpp +++ b/src/rt/rust_srv.cpp @@ -25,7 +25,11 @@ rust_srv::realloc(void *p, size_t bytes) { void rust_srv::log(char const *msg) { - fprintf(stderr, "rust: %s\n", msg); + printf("rust: %s\n", msg); + // FIXME: flushing each time is expensive, but at the moment + // necessary to get output through before a rust_task::fail + // call. This should be changed. + fflush(stdout); } void |
