delorie.com/archives/browse.cgi | search |
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=Xrb5JhYv01KDOOSjM600lfQGgbUhhWVM+rY2m3jNYQLHMhS6gHgSv | |
yha1NwIBSXuTqnA6U4KYOZsbRlEwVXbPLcl19+/y3DpHlgXGGguD01OmXOnUtzzw | |
QYQNpARz6IvWeKIGEc5gehBlSI7uIAd3OnDYKqIVJmPpVzPIAXWKIo= | |
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=P5NZXjr7m0szaQYeMGm+sE5BaBc=; b=oucwBQUiy5UysUSBK7n2NJ0wIMfx | |
WHQJrtOJK5CyYN+5kKUaOpotmj5TpukPndTAkZVjDuofunoCTze+VmLd7isGgOos | |
5SK3IpLCjX4q46WPWE0R60VHEiDMv3zqAWJHggQg55ZZJ9xSNsFCqzonsDOj6qbf | |
afU1gb5HKZMcDB4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Sun, 9 Feb 2014 21:38:25 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: spawnv() unlocks files in the calling program |
Message-ID: | <20140209203825.GJ2821@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <040201cf25c4$54e9cd20$febd6760$@lbmsys.com> <20140209192859 DOT GG2821 AT calimero DOT vinschen DOT de> <041d01cf25d2$6a59e5b0$3f0db110$@lbmsys.com> |
MIME-Version: | 1.0 |
In-Reply-To: | <041d01cf25d2$6a59e5b0$3f0db110$@lbmsys.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--umhhH1MY3lvPZrwj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 9 15:06, Steven Bardwell wrote: > > How do you test that? You're calling fcntl(F_SETLKW) exactly once at > > the start of your test application, but never again later. We're > > talking advisory file locking here, so, where's the next fcntl call > > waiting for the lock? > >=20 > > I debugged your test app and the lock still exists after the spawn call. > >=20 > >=20 > >=20 > > Corinna >=20 > To test this, I start this program to check for the lock: Ok, I can reproduce it, but it's too late to debug this today. I have to say, though, that fcntl advisory locking is POSIX functionality, while the spawn functions are not. In fact these dreaded spawn entry points are rather old stuff, which hasn't been tested for a long time. FWIW, advisory file locking has never been tested with them, and the fact that it doesn't work as expected doesn't exactly disturb me. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --umhhH1MY3lvPZrwj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS9+dBAAoJEPU2Bp2uRE+gdgoP/j4mQFUTAUYo99cIu7ZWBNUa TGbc20WunvQx1zz642OCQ+20QB8NYnd0+cga2b4AlU1gOvvy2f9TveG6PNOCMW1f xJ9NZx1r1BVUVATNJrHvaNQkuTmplf4JBd5L06Zak5HIGxADCkSfClV/7aMaryUW N+g0hViHRRpVrdWLfyumSJlkZA1csPsrEHeCu9dX6Xw5sTk8gWLYCRAOgGnmCR42 PwCpietYTW2/RvcIZkr2RZAEZQo5PHuHqvNuT0HKVP2YqMv43FY+un0Vxc98MjzP txq38G3zDsBUwDu/PMa6QrimCkseMZcswoNSEoh63Hez/mx57JEYVR0o0u1O+Z6M Dq9IPgF7d9TxjpARe18t0e/+PMHNb/1h5b+4u9CeELdFr7de0LAhhTTfbyAkuvHR 1pOXW0v77aYG5DbmX6Gf89eHk3A5UNOg8AE2shB0sxXe6IBN/RWhj40VrKz21XAv T4BYTEZvGQnRFTrnHLHnt9SN+bUpWWl4DrnUhfXjEl3J04U2FhIlsovy0R+vcuMl t5XN/TfTs9jNn7xUufEzochfTe7ulq49v/nDd7NNkm3oZXXI1EeNGBS8xpj+KTcN xZppDAjF9RCi3D+Y1d0vvc5YPPiU6cnWXkHEgaRixu9nqzki3u7S3TenCHlaAMn2 DnqtbeY1oK4RZyR3bEAp =8oaX -----END PGP SIGNATURE----- --umhhH1MY3lvPZrwj--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |