From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8956 invoked by alias); 2 Dec 2011 20:05:15 -0000 Received: (qmail 8946 invoked by uid 22791); 2 Dec 2011 20:05:14 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Dec 2011 20:04:53 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pB2K4rO0002429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Dec 2011 15:04:53 -0500 Received: from [10.3.113.136] (ovpn-113-136.phx2.redhat.com [10.3.113.136]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pB2K4qct016557 for ; Fri, 2 Dec 2011 15:04:52 -0500 Message-ID: <4ED92F64.4060905@redhat.com> Date: Fri, 02 Dec 2011 20:05:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Redirecting output from running proc doesn't modify the "last modified time" field for target file References: <32903475.post@talk.nabble.com> <32904332.post@talk.nabble.com> In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig01E0566B04D060AFCF4B9377" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-12/txt/msg00031.txt.bz2 --------------enig01E0566B04D060AFCF4B9377 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 892 On 12/02/2011 11:50 AM, Jon Clugston wrote: > While this loop is running, the timestamp on "x.log" doesn't change > (whereas on Linux it changes every 10 seconds). It sure looks to me > that Windows just doesn't bother updating the file timestamp while it > is open. I don't know if this update is required by POSIX - I would > doubt that it is. POSIX requires that any write() to an open file mark it for update; the update doesn't have to occur right away (so you can batch up several writes, but only change the mtime metadata once at the end of the batch), but it DOES require that stat() and several similar functions flush all marked updates prior to exposing timestamps to the user. So yes, Windows is violating POSIX, and I have no idea whether cygwin can work around it. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig01E0566B04D060AFCF4B9377 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 620 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJO2S9kAAoJEKeha0olJ0NqGBoIAIn7dExZlPahR+ttA05xUs46 alxMYFE50XXpxjoXSFWQnM/gv9GW6aAiUpb6/XT5TMXsaDAyAfOX/qM7eeS2Oon/ 7X2DA9kjvTxqq3vcxCpTDAm9Vs1bLVYmlQFcKgBeQJSQA/sp3kLMdyEqYry+zTVZ EE7zdh5fh/pNzIF6bWsRrg0wa6aFF3jb2/+DOistSMeE/gPkOsdi66ypfbEPyizL cw0sy4PdY9aMinF3/rQx9jii/NxMk4/ucuM8OPgHcdRM32erjpL8ULATdkXYhEYL GfwkhZ9080attd589vFO+TJXm37f87F/+qX7Y76GiIjAjX7LSSBfRx+4mIEzhjo= =5JLe -----END PGP SIGNATURE----- --------------enig01E0566B04D060AFCF4B9377--