aboutsummaryrefslogtreecommitdiffstats
path: root/parsehdlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'parsehdlist.c')
-rw-r--r--parsehdlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsehdlist.c b/parsehdlist.c
index 62cdeb4..46bfe6b 100644
--- a/parsehdlist.c
+++ b/parsehdlist.c
@@ -2,6 +2,7 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <signal.h>
#include <errno.h>
#include <rpm/rpmlib.h>
#include <rpm/header.h>
@@ -334,6 +335,7 @@ int main(int argc, char **argv)
}
fdClose(fd);
if (pid) {
+ kill(pid, SIGTERM);
waitpid(pid, NULL, 0);
pid = 0;
}