Re: Win32 semaphore patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Win32 semaphore patch
Date: 2006-04-20 18:20:07
Message-ID: 26606.1145557207@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> For #2, yes, the semaphores will go away when the last process holding a
> HANDLE to it goes away.

Well, that raises an interesting point: exactly where in this code does
ownership of the HANDLEs get propagated to the child processes? As
written, the HANDLEs seem to belong only to the postmaster --- will the
kernel calls even work in the child processes? According to what
someone was telling me the other day, HANDLEs are process-local, so just
storing them in shared memory doesn't seem like it should work.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2006-04-20 18:26:44 Re: Win32 semaphore patch
Previous Message David Wheeler 2006-04-20 18:17:19 Re: Suggestion: Which Binary?