Re: On file locking - Mailing list pgsql-hackers

From Kevin Brown
Subject Re: On file locking
Date
Msg-id 20030131084639.GM12957@filer
Whole thread Raw
In response to Re: On file locking  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> But this only wins if a child process inheriting an open file also
> inherits copies of any locks held by the parent.  If not, then the
> issue is moot.  Anybody have any idea if file locks work that way?
> Is it portable??

An alternate way might be to use semaphores, but I can't see how to do
that using the standard PGSemaphores implementation: it appears to
depend on cooperating processes inheriting a copy of the postmaster's
heap.

And since the POSIX semaphores default to unnamed ones, it appears
this idea is also a dead end unless my impressions are dead wrong...



-- 
Kevin Brown                          kevin@sysexperts.com


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: [mail] Re: Windows Build System
Next
From: "Dave Page"
Date:
Subject: Re: [mail] Re: Windows Build System