Re: On file locking

Поиск
Список
Период
Сортировка
От Kevin Brown
Тема Re: On file locking
Дата
Msg-id 20030131084639.GM12957@filer
обсуждение исходный текст
Ответ на Re: On file locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: [mail] Re: Windows Build System
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: [mail] Re: Windows Build System