aboutsummaryrefslogtreecommitdiffstats
path: root/parsehdlist.c
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-07 15:34:32 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-07 15:34:32 +0000
commita79b48256aca8870493d7e8e5a14dcde4865d361 (patch)
tree88a2fcd696cfa0aded176c34782b010523cf52ed /parsehdlist.c
parent0c40d63052597530da8ed3ad6a5dde3148c56c91 (diff)
downloadrpmtools-a79b48256aca8870493d7e8e5a14dcde4865d361.tar
rpmtools-a79b48256aca8870493d7e8e5a14dcde4865d361.tar.gz
rpmtools-a79b48256aca8870493d7e8e5a14dcde4865d361.tar.bz2
rpmtools-a79b48256aca8870493d7e8e5a14dcde4865d361.tar.xz
rpmtools-a79b48256aca8870493d7e8e5a14dcde4865d361.zip
*** empty log message ***
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;
}