diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-10-09 07:33:29 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-10-09 07:33:29 +0000 |
commit | aee6c2c5057052d6177f7c726ca706f020095b94 (patch) | |
tree | 09ef006c1f1a8c82b2b6c2a3573a986201e7fd46 | |
parent | e13d3e92766f944117dc966e4f0297e36e1b8d26 (diff) | |
download | FreeBSD-src-aee6c2c5057052d6177f7c726ca706f020095b94.zip FreeBSD-src-aee6c2c5057052d6177f7c726ca706f020095b94.tar.gz |
Don't kill itself in --fast-read mode if there is no decompressor started.
Reported by: Gordon Tetlow <gordont@gnf.org>
Submitted by: tjr
MFC after: 1 week
(along with other --fast-read changes)
-rw-r--r-- | contrib/tar/src/buffer.c | 2 |
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 |