Fix if statement with empty body due to stray semicolon.
[oweals/opkg-lede.git] / libbb / gz_open.c
index 7c7c722d3cb640d4f768fa7ce2432ac4aff8045a..3997e728e51b07608009739b2c41cdbe24e8ffbc 100644 (file)
@@ -38,6 +38,12 @@ gz_open(FILE *compressed_file, int *pid)
                perror_msg("pipe");
                return(NULL);
        }
+
+    /* If we don't flush, we end up with two copies of anything pending,
+       one from the parent, one from the child */
+    fflush(stdout);
+    fflush(stderr);
+
        if ((*pid = fork()) == -1) {
                perror_msg("fork");
                return(NULL);
@@ -65,7 +71,7 @@ gz_close(int gunzip_pid)
                perror_msg("waitpid");
                return -1;
        }
-       
+
        if (WIFSIGNALED(status)) {
                error_msg("Unzip process killed by signal %d.\n",
                        WTERMSIG(status));