raster pushed a commit to branch master.

http://git.enlightenment.org/core/evas_generic_loaders.git/commit/?id=100c1423234fc1802491c11e4d12f1cb30594f18

commit 100c1423234fc1802491c11e4d12f1cb30594f18
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Aug 11 21:34:48 2015 +0900

    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
---
 src/bin/gst/main.c      | 2 +-
 src/bin/gst/main_0_10.c | 2 +-
 src/bin/pdf/main.cpp    | 2 +-
 src/bin/ps/main.c       | 2 +-
 src/bin/raw/main.c      | 1 +
 src/bin/svg/main.c      | 1 +
 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;
 }

-- 


Reply via email to