Re: socket calls in signal handler (WAS: APC + socket restrictions un der Win32?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: "Kurt Roeckx" <Q(at)ping(dot)be>, "Claudio Natoli" <claudio(dot)natoli(at)memetrics(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: socket calls in signal handler (WAS: APC + socket restrictions un der Win32?)
Date: 2004-03-08 21:29:41
Message-ID: 16408.1078781381@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> To me this sounds like we have to make a general solution, and not win32
> specific, to get the socket calls out of the signal handler.

Hold on one second here. I thought this thread was discussing some
local problem in the Win32 workaround for lack of signals?

The postmaster's use of nominally unsafe stuff in signal handlers is not
and never has been a problem, because there is only one place in the
main loop where signals are unblocked, thus no possibility for something
to interrupt something else. I don't like the idea of redesigning that
code just because someone misunderstands it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-03-08 21:34:37 Re: COMMENT ON [GROUP/USER]
Previous Message Tom Lane 2004-03-08 21:24:30 Re: COMMENT ON [GROUP/USER]