From: | Dave Thiede |
Date: | 11 Sep 2000 at 14:46:57 |
Subject: | Re: AMIOPEN: [Q] gets and puts |
On Mon, 11 Sep 2000, Aaron Optimizer Digulla wrote:
> On Sat, Sep 09, 2000 at 10:01:09AM -0700, Dave Thiede wrote:
>
> > BTW, for such a short program the fflush() call shouldn't be necessary.
> > With a normal exit, all buffers should be flushed and the streams closed.
>
> This is a known bug in Elate; it doesn't flush the buffers correctly.
> The same happens in tar cvzf... which creates a child which runs gzip.
> When gzip exits, its output buffers are not flushed and therefore,
> the final archive it corrupt.
>
Thanks, this might explain some problems I have been having. It is much
harder to spot in complex code.
dave
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html