aboutsummaryrefslogtreecommitdiff
path: root/unpack/fill_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack/fill_files.c')
-rw-r--r--unpack/fill_files.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unpack/fill_files.c b/unpack/fill_files.c
index 865d050..88efd01 100644
--- a/unpack/fill_files.c
+++ b/unpack/fill_files.c
@@ -97,6 +97,9 @@ int fill_unpacked_files(fstree_t *fs, data_reader_t *data, int flags,
pid = fork();
if (pid == 0) {
+ /* Kill the child when the parent process dies */
+ prctl(PR_SET_PDEATHSIG, SIGKILL);
+
if (fill_files(data, sublists[i], flags))
exit(EXIT_FAILURE);
exit(EXIT_SUCCESS);