X-Recipient: archive-cygwin AT delorie DOT 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Xo3B6upfxFeuqkxl6iHkzSXyEycbkfR8WdS5+RtdZvN2HCCWTKxSB 1axSdoh+wLyiKeyLC7s8t0Pe0IrxwDq9AQ/2pvCBs9QB15OIH1Twr4t0+ZD2mp8D 2qi0SanlieEOYYVhRxM4Fz5ie9KLJ9PJji7d5Phe8cpipQjQfF7Kh0= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=zQR3Rcbx7y2OXeSj1VuqW/cxRqw=; b=MyGCRdbiA768c9/OidIjQChj7cwC ouELlwCYd/t9b6onVO+sSLaJDqGAqqgBJLMWF7MlBDqqFz5z9nND3tfdF266F2My m8Gcx0u87JyL2h0dz8ilBMfvwavqP0Hv1mInTd9sTLobswv38vwquddi7pFcIS4c 5exViDXHqSVuIwM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-96.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=vinschen!, Vinschen!, H*i:sk:9370956, H*f:sk:9370956 X-HELO: calimero.vinschen.de Date: Tue, 5 Apr 2016 10:32:58 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Unreliable flock Message-ID: <20160405083258.GB21544@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <175808986 DOT 20160403002257 AT yandex DOT ru> <20160404151644 DOT GB29337 AT calimero DOT vinschen DOT de> <59768064 DOT 20160404195111 AT yandex DOT ru> <20160404190558 DOT GB20943 AT calimero DOT vinschen DOT de> <937095619 DOT 20160405050847 AT yandex DOT ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: <937095619.20160405050847@yandex.ru> User-Agent: Mutt/1.5.24 (2015-08-30) --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Apr 5 05:08, Andrey Repin wrote: > Greetings, Corinna Vinschen! >=20 > > I guess you read that > > there's a way to use Windows mandatory locks, too. >=20 > 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". exclusive !=3D mandatory See, e.g, http://man7.org/linux/man-pages/man2/fcntl.2.html Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXA3g5AAoJEPU2Bp2uRE+gjdgP/1Gzql+MW5Vf5PrjahPCtKmm grvOhs5iyOk32kKTs7StkxR7HHjaiwvpkglKppQsTYtwI8xn8vIQAiS+yW3/HdMl ijOqF/BlLJSL8ljtu1xGYEsPEXrXfths3R0byCOjwd6Hf5JA4tyoBT9dOdyCBPaQ WlxFIW8Z7dtttKqulTR9f0bGRjIhFWrvJLlIzElmPk4hbYOgQ8xA7JfPO/bMQKzy Xf6+3qTKk1LGILLWE8yBKGj4pvd/T0YABBpWktrlI5CRDd3OPCL2lPaG+3M7hq1X z+7k2W0CFungVSjz62f87qsOEHlcBtNxirFNuqUPvGh5mjhd3J7+W0c8sDUnZ8Qs NRpIrzIJt2BbBskfx9BQqP5jnOp2HaTX/cera/WgsbAr65zzTNY6TkJu2QhO6A+P rIukRb4w8PULhr/dxWOaeEKxnN0g7vwSFrDKDPPp+uGHzwpvG4RVz0BcQsnX6ETA cuGB89axTrAAiJOOI0Ardy9foPim99bCkRFpVHXHS7/j57d5sQRYiI3+K2U0Vwfj qzrkX0ys/glrZsFedQg+4dWnItT7w18M2MKmdTUsXJdcQEmnIJGbQKvfYRMn3ZCm 7iLoCoawJ6oFE0sXnwsgW+3GiAzXrTJTELGsWvsuz/NQrhpo3ZS66gxoiVy5W1bd sLzdujSpnKEJa3fQYOT5 =3efc -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--