delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/19/07:30:37

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=EVu6Lg6Zd3hdO0G/0cs5m2BVTmYC3hvXAtLvLhtaENcAYdXo+40jX
x7VEjtwYrQy+QHOW2STzu+t349tSq7ZK1QCdAZ9F0SRMG8Sxlbiz35Odpvk7qLF7
/NEwqTZSF/8D0Eo1uGb0/IBSApSSs5bjAElg1r4SlfSRduTIfE6+p0=
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=J3wGva7fN5Zu8q1WKijymXiS38Q=; b=h1IMgCPkuhrGqxuVW6rY+8YPtowx
yX2g3cB/SDizwQ+eOGW+tA108r9Hz1AjnlJr6UaolCAH9t25nh4ESF/+jn/W+SwA
9v4NlYFIBP/fb++3umTmeU82EQNh4FRHpM8o4UetFZ/AdzU+SDP9246igxxMh73P
08t0zV53mHjY2CQ=
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
X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.1
Date: Fri, 19 Jul 2013 13:30:09 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sqlite defect
Message-ID: <20130719113009.GE20871@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <trinity-fdc5a0b5-6dcf-4fc0-9370-dd32a75fe928-1373654994500 AT 3capp-gmx-bs47> <51E703FB DOT 1010300 AT etr-usa DOT com> <trinity-1068d666-3dec-43c9-8453-39c7cae3a94c-1374102947415 AT 3capp-gmx-bs33> <51E74AB4 DOT 7010508 AT etr-usa DOT com> <ks87ur$nle$1 AT ger DOT gmane DOT org> <20130718085953 DOT GC9628 AT calimero DOT vinschen DOT de> <ksa6bs$ac9$1 AT ger DOT gmane DOT org> <20130719100329 DOT GC20871 AT calimero DOT vinschen DOT de> <20130719100809 DOT GD20871 AT calimero DOT vinschen DOT de> <ksb4cn$cp8$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <ksb4cn$cp8$1@ger.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jul 19 19:28, jojelino wrote:
> On 2013-07-19 PM 7:08, Corinna Vinschen wrote:
> > ...and, btw., fcntl(fd, F_SETOWN) is only supported on sockets.
> >
> >
> > Corinna
> >
> 28 55977555 [main] python 5616 open: 9 =
> open(/home/Administrator/....../..............sqlite, 0x58202)
> ..
> ..
>  4680 55982813 [main] python 5616 flock: 0 = flock(9, 6)
> ..
> ..
>    35 55983687 [main] python 5616 seterrno_from_nt_status:
> /netrel/src/cygwin-snapshot-20130619-1/winsup/cygwin/flock.cc:2020
> status 0xC0000055 -> windows error 33
>    26 55983713 [main] python 5616 geterrno_from_win_error: windows
> error 33 == errno 16
>    24 55983737 [main] python 5616 flock: -1 = flock(9, 6), errno 16
> 
> I tried reproducing above failure.

A valid testcase would help a lot, though.  What you meant to do
was calling flock with LOCK_EX|LOCK_NB.

And then again, your testcase works as designed.  Not by me, but by
Microsoft.  You can't overwrite an existing lock, even if hold by the
same file handle.  See http://cygwin.com/cygwin-api/std-notes.html


Corinna

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

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019