delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/13/16:05:22

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: 13 Jul 2001 16:05:03 -0400
Message-ID: <20010713200503.10625.qmail@lizard.curl.com>
From: Jonathan Kamens <jik AT curl DOT com>
To: cygwin AT cygwin DOT com
Subject: File timestamp not updated by writes with current snapshot?

I updated my winsup sources from the CVS repository yesterday and
built cygwin1.dll.  Using the new cygwin1.dll, I'm seeing something
I've never seen before, so I suspect it is somehow related to the DLL,
which is why I'm reporting it here.  Basically, a file's timestamp
isn't being updated, despite the fact that data is being added to the
end of it, until after it's closed.  Observe:

$ (echo foo; ls -l foo 1>&2; sleep 60; echo foo; ls -l foo 1>&2) > foo
-rwxr-xr-x   1 curlbot  Administ        4 Jul 13 16:00 foo
-rwxr-xr-x   1 curlbot  Administ        8 Jul 13 16:00 foo
$ ls -l foo
-rwxr-xr-x   1 curlbot  Administ        8 Jul 13 16:01 foo
$ 

The second ls output line above should say 16:01 but doesn't.

Is this behavior known?  Is it intentional?

Thanks,

  Jonathan Kamens

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019