delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/12/10:31:57

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 12 Mar 2009 16:31:04 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem getting flock with timeout to work
Message-ID: <20090312153104.GB2364@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <9e3fd2c80903120740u5fa06d62t372cd67212fad1e AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <9e3fd2c80903120740u5fa06d62t372cd67212fad1e@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 12 15:40, Robert Klemme wrote:
> Hi,
> 
> I searched the archives but could not find any related issue.  My
> problem is this: I use flock with a timeout but apparently the timeout
> does not work, i.e. flock waits longer than specified.  Script is
> attached.  Output is here:

The flock implementation in Cygwin 1.5.25 is not very sophisticated
and uses direct calls to the Windows mandatory file locking calls.

The next major release Cygwin 1.7 has a completely new implementation
of file locking (fcntl, flock, lockf) providing advisory file locking.
If you could give it a try, I'd be glad to have a tester for this
code.  Please start here:
http://cygwin.com/ml/cygwin-announce/2009-03/msg00043.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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