Re: fcntl(F_SETLK) - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: fcntl(F_SETLK)
Date
Msg-id 39648CA0.B8999C35@alumni.caltech.edu
Whole thread Raw
In response to fcntl(F_SETLK)  (eisentrp@csis.gvsu.edu)
Responses Re: fcntl(F_SETLK)  (Philip Warner <pjw@rhyme.com.au>)
Re: fcntl(F_SETLK)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> >> There's a broken configure test for fcntl(F_SETLK). (Hint: Of course it's
> >> going to fail if you don't include the header file that defines
> >> F_SETLK.) Apparently, it's been broken for quite a while so I'm afraid to
> >> fix it, considering the problems with file locking.
> >> Reading up on TODO.detail/flock, it seems this mechanism is made obsolete
> >> by the pid file, so I'm inclined to remove it. At least those using Linux
> >> and Solaris shouldn't feel a difference because the locking code wasn't
> >> being used for said reasons. :)
> I *presume* this relates to your recent discussions re flock?
> By causing the configure test to fail, the resulting code works...

Current CVS sources are hard-broken for Linux :((

On my laptop with a 2.2.14 kernel, postmaster exits with a segfault, and
gdb fails to keep ahold of the image when running:
 Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists.

which will make it difficult for me to debug.

The tree worked yesterday. Philip, what exactly did you do to "cause the
configure test to fail"? Can I just go in a muck with Makefile.global?

I'd like to get up and running so I can finish testing and submit some
patches!
                     - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: pl/pgsql function out parameters
Next
From: JanWieck@t-online.de (Jan Wieck)
Date:
Subject: Re: 2nd update on TOAST