This is the mail archive of the cygwin@cygwin.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 timestamp not updated by writes with current snapshot?


On Fri, Jul 13, 2001 at 05:26:42PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 04:38 PM 7/13/2001, Jonathan Kamens wrote:
> > >  Date: Fri, 13 Jul 2001 16:33:12 -0400
> > >  From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
> > >  
> > >  Windows has trouble with times/date resolution.  In that respect, this is 
> > >  known.  What DLL did you update from?  I see it with 1.3.2 and 1.1.8.
> >
> >I updated from the current head, which I guess is 1.3.2+.
> >
> >Now that you mention it, I just tried the test with 1.1.8, and you're
> >right, the particular test case I mentioned happens there too.
> >
> >But what prompted me to send E-mail about this problem to the mailing
> >list isn't a test case which spans only one minute.  It was seeing a
> >file being regularly updated with new data (coming from a >> bash
> >redirection) for *over forty minutes* without its timestamp being
> >updated.  I could be wrong, but I don't think I've ever seen that with
> >1.1.8.
> >
> >Or perhaps I'm just on drugs and this problem has been around for a
> >long long time :-).
> 
> 
> I'm not sure exactly how long the problem may have existed either.  It
> is a problem with the form, rather than the function.  Splitting this
> up into separate statements all run from a script doesn't show the 
> problem.  Have you tried the same thing on other platforms?  I'm just
> curious if the problem is Cygwin specific or not.  I'm not near a 
> functioning Linux box at the moment... :-(

No, it doesn't happen on Linux.

The problem is related to the fact that the whole command set is
running in a subshell while the stdout redirection is already done
by the parent shell. I don't know why that happens, though.
Just a wild guess: The file has been opened by another process than
the process writing to the file and that opening process has the
file opened all the time. Perhaps Windows has a timestamp problem
related to that situation somehow. At least Cygwin doesn't explicitely
care for the timestamps on simple IO but relies on the underlying OS.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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