]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
flush stdout before we close the backing fd
authorAntti Kantee <pooka@iki.fi>
Thu, 16 Apr 2015 11:26:58 +0000 (11:26 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 16 Apr 2015 11:26:58 +0000 (11:26 +0000)
lib/librumprun_tester/rumprun_tester.c

index 1426a50d38754d32ba88bf19034f36e926f4ab07..77b30328bc51dac3450671d6308699189caec734 100644 (file)
@@ -89,6 +89,7 @@ main(int argc, char *argv[])
 
        snprintf(buf, sizeof(buf), "%s % 3d\n", rv == 0 ? "OK" : "NO", rv);
        pwrite(fd, buf, sizeof(INITIAL)-1, 0);
+       fflush(stdout);
        close(fd);
        close(STDOUT_FILENO);
        close(STDERR_FILENO);