Re: [HACKERS] why do shmem attach?

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Developers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] why do shmem attach?
Date: 1999-09-20 06:58:03
Message-ID: 37E5DAFB.18D54027@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hiroshi Inoue wrote:
>
> Where do we attach to shmem after fork() ?
> I couldn't find the place.

Ops, sorry, you're right - postinit.c:InitCommunication():

if (!IsUnderPostmaster) /* postmaster already did this */
{
PostgresIpcKey = key;
AttachSharedMemoryAndSemaphores(key);
}

Though, AttachSharedMemoryAndSemaphores():

if (key == PrivateIPCKey)
{
CreateSharedMemoryAndSemaphores(key, 16);
return;
}

... and useless shmem attachment stuff follows after this ...

Cleanup is still required, but subj is closed, thanks -:)

Vadim

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Theo Kramer 1999-09-20 07:28:40 Re: [HACKERS] Re: HISTORY for 6.5.2
Previous Message Hiroshi Inoue 1999-09-20 06:27:48 RE: [HACKERS] why do shmem attach?