From aee6c2c5057052d6177f7c726ca706f020095b94 Mon Sep 17 00:00:00 2001 From: sobomax Date: Wed, 9 Oct 2002 07:33:29 +0000 Subject: Don't kill itself in --fast-read mode if there is no decompressor started. Reported by: Gordon Tetlow Submitted by: tjr MFC after: 1 week (along with other --fast-read changes) --- contrib/tar/src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tar/src') 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 -- cgit v1.1