Call _exit() and not exit() from within the child process.
[oweals/opkg-lede.git] / libbb / gz_open.c
index 330ba60013e3f3ad2a3a677c8b6d7f2fa59ea578..f9ee8c10b53cdde04f2475316b17ae7872afe972 100644 (file)
@@ -48,7 +48,7 @@ extern FILE *gz_open(FILE *compressed_file, int *pid)
                fflush(NULL);
                fclose(compressed_file);
                close(unzip_pipe[1]);
-               exit(EXIT_SUCCESS);
+               _exit(EXIT_SUCCESS);
        }
        close(unzip_pipe[1]);
        return(fdopen(unzip_pipe[0], "r"));