summaryrefslogtreecommitdiff
path: root/src/bin/ps/main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-08-11 21:34:48 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-08-11 21:34:48 +0900
commit100c1423234fc1802491c11e4d12f1cb30594f18 (patch)
tree3065af70993312e1f755b68362cd1a5a312bd7c1 /src/bin/ps/main.c
parent5f4b7996d767f562ef458402637bf25ceec5a419 (diff)
downloadevas_generic_loaders-100c1423234fc1802491c11e4d12f1cb30594f18.tar.gz
generic loaders - fix load if process esits before stdout produced
i found that generic loaders broke on my machine. stdout was never reaching the app. child process exited and never sent stdout before parent got anything - it all was lost in buffers somewhere. this fixes it. fflush stdout. nasty little bugger. @fix
Diffstat (limited to 'src/bin/ps/main.c')
-rw-r--r--src/bin/ps/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ps/main.c b/src/bin/ps/main.c
index a994ec2..92c29a7 100644
--- a/src/bin/ps/main.c
+++ b/src/bin/ps/main.c
@@ -284,6 +284,6 @@ main(int argc, char **argv)
printf("done\n");
_spectre_shutdown();
-
+ fflush(stdout);
return 0;
}