Skip to content

Commit a7a1152

Browse files
tedhorstbrson
authored andcommitted
put fflush back in
1 parent 9fd2fcc commit a7a1152

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rt/rust_srv.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ rust_srv::realloc(void *p, size_t bytes) {
2626
void
2727
rust_srv::log(char const *msg) {
2828
fprintf(stderr, "rust: %s\n", msg);
29+
// FIXME: flushing each time is expensive, but at the moment
30+
// necessary to get output through before a rust_task::fail
31+
// call. This should be changed.
32+
fflush(stderr);
2933
}
3034

3135
void

0 commit comments

Comments
 (0)