Re: Nameless IPC on POSIX systems

Поиск
Список
Период
Сортировка
От des@des.no (Dag-Erling Smørgrav)
Тема Re: Nameless IPC on POSIX systems
Дата
Msg-id 86psw4ytsc.fsf@xps.des.no
обсуждение исходный текст
Ответ на Re: Nameless IPC on POSIX systems  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Nameless IPC on POSIX systems
Список pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> writes:
> The check we need is "are there any other processes (still) attached to
> this shmem" and AFAIK that is not available in the mmap API.  Do you
> know how to get it?

You can hack something up with fcntl() locks.  If a process has a
shared lock on the shm file, F_GETLK will get you its pid.  Then grab
your own shared lock.

DES
--
Dag-Erling Smørgrav - des@des.no

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Nameless IPC on POSIX systems
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Nameless IPC on POSIX systems