Re: Singnals code (not just win32 specific) - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: Singnals code (not just win32 specific)
Date
Msg-id 400FD16B.7050502@Yahoo.com
Whole thread Raw
In response to Singnals code (not just win32 specific)  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Singnals code (not just win32 specific)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Magnus Hagander wrote:
> Hello!
>
> The backend signals code today uses pqsignal() instead of signal() at
> all places. But it uses kill() and sigsetmask() (through the macro
> PG_SETMASK) directly.
>
> I propose to change this to pqkill() and pqsigsetmask(). In pqsignal.h,
> these would be #define:d back to kill() and setsigmask() for the normal
> method, but would be functions on win32.

Sounds logical and more consistent than it is now.

While talking about it, I think our usage of signals is way overloaded
anyway. Any ideas how to replace it all with just one signal and a
regular message queue?


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: "Thomas Hallgren"
Date:
Subject: Dynamic modules and standard naming practice
Next
From: "Merlin Moncure"
Date:
Subject: What's left?