aboutsummaryrefslogtreecommitdiff
path: root/dpkg_deb.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-07 02:40:59 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-07 02:40:59 +0000
commit122f091d98bc895280cb25997b58f84c71247c36 (patch)
treefc231f5361d5987bbb045ffe3652a4745886541c /dpkg_deb.c
parent31e5466285d1863bb0f843d91a9c125c75b9c872 (diff)
downloadbusybox-w32-122f091d98bc895280cb25997b58f84c71247c36.tar.gz
busybox-w32-122f091d98bc895280cb25997b58f84c71247c36.tar.bz2
busybox-w32-122f091d98bc895280cb25997b58f84c71247c36.zip
Ignore SIGTERM prior to gz_close()
git-svn-id: svn://busybox.net/trunk/busybox@2276 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'dpkg_deb.c')
-rw-r--r--dpkg_deb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dpkg_deb.c b/dpkg_deb.c
index 309f8d762..8239c3c43 100644
--- a/dpkg_deb.c
+++ b/dpkg_deb.c
@@ -24,6 +24,7 @@
24#include <unistd.h> 24#include <unistd.h>
25#include <string.h> 25#include <string.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <signal.h>
27#include "busybox.h" 28#include "busybox.h"
28 29
29/* From gunzip.c */ 30/* From gunzip.c */
@@ -120,8 +121,11 @@ extern int deb_extract(int optflags, const char *dir_name, const char *deb_filen
120 } 121 }
121 status = readTarFile(srcFd, extract_flag, list_flag, 122 status = readTarFile(srcFd, extract_flag, list_flag,
122 extract_to_stdout, verbose_flag, NULL, extract_list); 123 extract_to_stdout, verbose_flag, NULL, extract_list);
123 close(srcFd); 124
125 /* we are deliberately terminating the child so we can safely ignore this */
126 signal(SIGTERM, SIG_IGN);
124 gz_close(pid); 127 gz_close(pid);
128 close(srcFd);
125 fclose(comp_file); 129 fclose(comp_file);
126 130
127 return status; 131 return status;