|
From: | Michael D Godfrey |
Subject: | Re: wait_for_file ?? [who/what/where does fclose()?] |
Date: | Fri, 10 Sep 2010 12:06:46 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Thunderbird/3.1.3 |
On 09/10/2010 11:58 AM, bpabbott wrote:
This should be fine as long as drawnow() does fopen ... fclose in the first case and nothing in the second. That is not how it works now. I think it would be best for drawnow either to do the open and close or not. Having it do the open ... close for files, but not for pipes seems potentially confusing. But, Shai should say, and do, what is best. Just because I am risk adverse, I would put an fflush() ahead of the fclose wherever it happens. This seems to matter more when using NFS, and it has never been known to cause harm. Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |