summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-10-09 07:33:29 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-10-09 07:33:29 +0000
commitcfd0804eaf00dd04a4a165e7ab2d350a0614021a (patch)
tree09ef006c1f1a8c82b2b6c2a3573a986201e7fd46
parent98d275df37d3c2650776face5e9398e5fa5195dd (diff)
Notes
-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 31aef37d51c3..6f44df2bd7fc 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