sqlite defect

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jul 19 11:53:00 GMT 2013


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



More information about the Cygwin mailing list