Commit 298dc122 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix mangled output for 'make scores'

We need to flush stdout before forking.
parent c6bbde3a
......@@ -81,6 +81,8 @@ char *run_with_timeout(const void *ctx, const char *cmd,
if (tools_verbose)
printf("Running: %s\n", cmd);
/* Always flush buffers before fork! */
fflush(stdout);
gettimeofday(&start, NULL);
pid = fork();
if (pid == -1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment