[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possibly bug: autom4ate forgets to flush/close the output file?

From: Eric Blake
Subject: Re: possibly bug: autom4ate forgets to flush/close the output file?
Date: Wed, 09 Apr 2008 06:02:12 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080213 Thunderbird/ Mnenhy/

Hash: SHA1

According to Viatcheslav.Sysoltsev on 4/9/2008 1:46 AM:
| Good time of day,

Hello Viatcheslav, and thanks for the report,

| documentation for Autom4te::XFile says anyway implicitly in use cases, that
| the file opened with open() must be closed with close().
| Of course, I tried to insert the $out->close() at the appropriate place and
| this fixed my problem.

Would you mind posting your patch (as a context or unified diff against
either against 2.62 or against current git) for where you added the
close()?  Technically, exiting a process is supposed to flush and close
all streams implicitly, but as the gnulib project has discovered, not all
platforms obey this POSIX rule and an explicit close is probably the right
thing to add, even though no one else has ever encountered this problem.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

[Prev in Thread] Current Thread [Next in Thread]