public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: File creation problem - cache?
@ 1999-06-21 17:06 Larry Hall (GIS)
  1999-06-30 22:10 ` Larry Hall (GIS)
  0 siblings, 1 reply; 6+ messages in thread
From: Larry Hall (GIS) @ 1999-06-21 17:06 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File creation problem - cache?
  1999-06-21 17:06 File creation problem - cache? Larry Hall (GIS)
@ 1999-06-30 22:10 ` Larry Hall (GIS)
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (GIS) @ 1999-06-30 22:10 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File creation problem - cache?
  1999-06-21  5:35 Sergey Okhapkin
@ 1999-06-30 22:10 ` Sergey Okhapkin
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Okhapkin @ 1999-06-30 22:10 UTC (permalink / raw)
  To: Ian Collins, cygwin

>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.
>


What OS do you run? This may happen on NT 4.0 w/o any service packs.

Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* File creation problem - cache?
  1999-06-20 21:17 Ian Collins
@ 1999-06-30 22:10 ` Ian Collins
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Collins @ 1999-06-30 22:10 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

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.




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File creation problem - cache?
@ 1999-06-21  5:35 Sergey Okhapkin
  1999-06-30 22:10 ` Sergey Okhapkin
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Okhapkin @ 1999-06-21  5:35 UTC (permalink / raw)
  To: Ian Collins, cygwin

>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.
>


What OS do you run? This may happen on NT 4.0 w/o any service packs.

Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* File creation problem - cache?
@ 1999-06-20 21:17 Ian Collins
  1999-06-30 22:10 ` Ian Collins
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Collins @ 1999-06-20 21:17 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

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.




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-06-30 22:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-21 17:06 File creation problem - cache? Larry Hall (GIS)
1999-06-30 22:10 ` Larry Hall (GIS)
  -- strict thread matches above, loose matches on Subject: below --
1999-06-21  5:35 Sergey Okhapkin
1999-06-30 22:10 ` Sergey Okhapkin
1999-06-20 21:17 Ian Collins
1999-06-30 22:10 ` Ian Collins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).