diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-08-11 21:34:48 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-08-11 21:34:48 +0900 |
commit | 100c1423234fc1802491c11e4d12f1cb30594f18 (patch) | |
tree | 3065af70993312e1f755b68362cd1a5a312bd7c1 | |
parent | 5f4b7996d767f562ef458402637bf25ceec5a419 (diff) | |
download | evas_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
-rw-r--r-- | src/bin/gst/main.c | 2 | ||||
-rw-r--r-- | src/bin/gst/main_0_10.c | 2 | ||||
-rw-r--r-- | src/bin/pdf/main.cpp | 2 | ||||
-rw-r--r-- | src/bin/ps/main.c | 2 | ||||
-rw-r--r-- | src/bin/raw/main.c | 1 | ||||
-rw-r--r-- | src/bin/svg/main.c | 1 | ||||
-rw-r--r-- | src/bin/xcf/main.c | 1 |
7 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/gst/main.c b/src/bin/gst/main.c index 77f3910..d9e6fa7 100644 --- a/src/bin/gst/main.c +++ b/src/bin/gst/main.c @@ -287,6 +287,6 @@ main(int argc, char **argv) printf("done\n"); _gst_shutdown(); - + fflush(stdout); return 0; } diff --git a/src/bin/gst/main_0_10.c b/src/bin/gst/main_0_10.c index c6e4dd0..3e0c02b 100644 --- a/src/bin/gst/main_0_10.c +++ b/src/bin/gst/main_0_10.c @@ -273,6 +273,6 @@ main(int argc, char **argv) printf("done\n"); _gst_shutdown(); - + fflush(stdout); return 0; } diff --git a/src/bin/pdf/main.cpp b/src/bin/pdf/main.cpp index 78f918e..d2cf856 100644 --- a/src/bin/pdf/main.cpp +++ b/src/bin/pdf/main.cpp @@ -350,6 +350,6 @@ main(int argc, char **argv) eina_tmpstr_del(tmpdir); eina_tmpstr_del(generated); } - + fflush(stdout); return 0; } 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; } diff --git a/src/bin/raw/main.c b/src/bin/raw/main.c index 2e36119..bceb9ff 100644 --- a/src/bin/raw/main.c +++ b/src/bin/raw/main.c @@ -235,6 +235,7 @@ int main(int argc, char **argv) } } _raw_shutdown(); + fflush(stdout); return 0; } diff --git a/src/bin/svg/main.c b/src/bin/svg/main.c index b6c844c..5fc7912 100644 --- a/src/bin/svg/main.c +++ b/src/bin/svg/main.c @@ -223,6 +223,7 @@ int main(int argc, char **argv) } } _svg_shutdown(); + fflush(stdout); return 0; } diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c index 48f2751..7b798ca 100644 --- a/src/bin/xcf/main.c +++ b/src/bin/xcf/main.c @@ -1726,5 +1726,6 @@ main(int argc, char **argv) else printf("done\n"); xcf_cleanup(); + fflush(stdout); return 0; } |