diff --git a/src/rt/rust_srv.cpp b/src/rt/rust_srv.cpp index 4573bd01804..64befd6ee42 100644 --- a/src/rt/rust_srv.cpp +++ b/src/rt/rust_srv.cpp @@ -31,6 +31,10 @@ rust_srv::realloc(void *p, size_t bytes) { void rust_srv::log(char const *msg) { printf("rt: %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