Don't send the gzunp_pid SIGTERM. Waiting for exit should be sufficient.
[project/opkg-lede.git] / libbb / gz_open.c
index 3107af983531d9881dff026e63b05854120a3a6a..330ba60013e3f3ad2a3a677c8b6d7f2fa59ea578 100644 (file)
@@ -56,10 +56,6 @@ extern FILE *gz_open(FILE *compressed_file, int *pid)
 
 extern void gz_close(int gunzip_pid)
 {
-       if (kill(gunzip_pid, SIGTERM) == -1) {
-               perror_msg_and_die("%s: kill(gunzip_pid)", __FUNCTION__);
-       }
-
        if (waitpid(gunzip_pid, NULL, 0) == -1) {
                perror_msg("%s wait", __FUNCTION__);
        }