summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/tar/src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tar/src/buffer.c b/contrib/tar/src/buffer.c
index 31aef37..6f44df2 100644
--- a/contrib/tar/src/buffer.c
+++ b/contrib/tar/src/buffer.c
@@ -1339,7 +1339,7 @@ close_archive (void)
might become clever enough to just stop working, once there is no more
work to do, we might have to revise this area in such time. */
- if (fast_read_option && namelist_freed)
+ if (fast_read_option && namelist_freed && child_pid > 0)
kill(child_pid, SIGTERM);
if (access_mode == ACCESS_READ
OpenPOWER on IntegriCloud