X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=aLMJeVZRbUwK5WNp
	tuWiVHIyZK8qRbi4Njk9VHZXxA48231YOF9in4TErKwo+2wuHKt103hty14Qqfb6
	utpuZjaza6EAmvPGv6u3X90eCPP4TwgtI6jgO9XHjUxK7hNfkrarC8yATE2BWb+I
	N4ndQYi/fgQtgGzXRUukx/8w/vA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=73wS6JJPgcFy+OdznEhJ95
	T8Q4M=; b=AgaeVTNsqtv6soikmnxX0EhX1HHG5Renxhat8rwTmW72JM0GKftnIF
	mQCZfQCwSJ1JgHkfZ2q9hKzja3esqwu0hkj7cg1CNDKj4n1L+EApWZqUMCVe6s+/
	Ms55dLhnhFGHYEI9bN4/UwH3n2sfaU+NC3yMPEPL14YCxIhJAbmg4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:sk:postmas, H*r:4.80.1
X-HELO: smtp.ht-systems.ru
Date: Tue, 5 Apr 2016 05:08:47 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <937095619.20160405050847@yandex.ru>
To: Corinna Vinschen <cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: Unreliable flock
In-Reply-To: <20160404190558.GB20943@calimero.vinschen.de>
References: <175808986.20160403002257@yandex.ru>   <20160404151644.GB29337@calimero.vinschen.de>  <59768064.20160404195111@yandex.ru>  <20160404190558.GB20943@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Corinna Vinschen!

> I guess you read that
> there's a way to use Windows mandatory locks, too.

Yes, if I compile my own program. But I'm not. I'm writing a shell script.
And /usr/bin/flock fails to lock a file. Even though the man claims that it
"uses an exclusive lock by default".


-- 
With best regards,
Andrey Repin
Tuesday, April 5, 2016 05:06:19

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

