Subject: Re: bin/20645: tar creation with "z" or "Z" option may delay in writing
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 03/10/2003 09:29:32
> >Synopsis:       tar creation with "z" or "Z" option may delay in writing

> I think the reason might be that the parent pax as ustar process dose not
> wait enough for the execlp'ed child gzip/compress process to finish writing
> to the archive.

> >Fix:

How about making 'tar' the child process and exec'ing gzip in the parent?
All you then need to do in ensure that the tar process exits if the
compresser aborts (SIGPIPE should do this).

	David

-- 
David Laight: david@l8s.co.uk