This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: File creation problem - cache?


>Message-Id: <3.0.5.32.19990621085243.00a5c300@pop.ma.ultranet.com>
>X-Sender: lhall@pop.ma.ultranet.com
>X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
>Date: Mon, 21 Jun 1999 08:52:43 -0400
>To: Ian Collins <ianc@kiwiplan.co.nz>,
>        "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
>Subject: Re: File creation problem - cache?
>In-Reply-To: <AC4D3D80B239D211BC140000F879A2BA0AEDA7@NTMAIL>
>Mime-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>
>At 04:19 PM 6/21/99 +1200, Ian Collins wrote:
>>Am I going mad, or does this sound familiar to anyone?
>>
>>We have a process that,
>>
>>1.1. Creates a file
>>1.2. Populates the file 
>>1.3. Closes the file
>>1.4, Forks a new process (with the filename created above as an argument).
>>
>>The child process,
>>
>>2.1. Looks for a file specified as an argument.
>>2.2. If found, reads and processes the file
>>
>>We are seeing, time and again, that the child does not find the specified
>>filename.
>>However, by putting a delay between 1.4 and 2.1, the problem disappears.
>>
>>Is there a caching problem?
>>Can anyone suggest a reliable work around?
>>
>>(Or am I just going mad).
>>
>>Ian Collins.
>>
>>
>>
>
>
>Are you on 9x?  I remember seeing this problem on 9x without Cygwin.
>The problem basically equated to the fact that the file was not available 
>in the directory until it showed up in the explorer (or at least that
>was the easy way to describe when it would and when it would not work).
>Similar troubles on NT (using NTFS at least) did not appear.  My solution
>at the time was similar to yours (i.e. wait "awhile" and things show up).
>Its not an optimal solution by any means but it can work.  Others may
>have found better solutions...
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>118 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>                                        (508) 560-1285 - cell phone
>

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]