From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11627 invoked by alias); 19 Jul 2013 12:02:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11617 invoked by uid 89); 19 Jul 2013 12:02:51 -0000 X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 19 Jul 2013 12:02:50 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 78DE1520ACB; Fri, 19 Jul 2013 14:02:42 +0200 (CEST) Date: Fri, 19 Jul 2013 12:36:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: sqlite defect Message-ID: <20130719120242.GH20871@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <51E74AB4.7010508@etr-usa.com> <20130718085953.GC9628@calimero.vinschen.de> <20130719100329.GC20871@calimero.vinschen.de> <20130719100809.GD20871@calimero.vinschen.de> <20130719113009.GE20871@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-07/txt/msg00395.txt.bz2 On Jul 19 20:53, jojelino wrote: > On 2013-07-19 PM 8:30, Corinna Vinschen wrote: > >A valid testcase would help a lot, though. What you meant to do > >was calling flock with LOCK_EX|LOCK_NB. > > > that's what exactly sqlite3 that uses the mandatory-locking did. > reproducing the behavior was i meant to do. > >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 > > > Yes. the testcase works without mandatory locking. so i hope next > sqlite3 release doesn't use mandatory locking feature of cygwin. > someone who have plenty of time to waste digging into sqlite3 source > code would come with workaround to the problem. There *is* a workaround: export CYGWIN_SQLITE_LOCKING=posix See http://cygwin.com/ml/cygwin-announce/2013-06/msg00014.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