pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <tmunro@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Date: Wed, 14 Apr 2021 22:26:13 -0400
Message-ID: <3739816.1618453573@sss.pgh.pa.us> (raw)
In-Reply-To: <E1lGXKf-0007dm-Ix@gemulon.postgresql.org>
References: <E1lGXKf-0007dm-Ix@gemulon.postgresql.org>

Thomas Munro <tmunro@postgresql.org> writes:
> Use SIGURG rather than SIGUSR1 for latches.

I notice that postmaster.c still does

#ifdef SIGURG
    pqsignal_pm(SIGURG, SIG_IGN);          /* ignored */
#endif

It appears to me that this should now read

    pqsignal_pm(SIGURG, dummy_handler);    /* unused, reserve for children */

for the reasons explained in the comment for dummy_handler.

It's possible that that argument doesn't apply to the way SIGURG is used
in this patch, but I don't see a good reason to ignore the convention of
setting up the handler this way.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <3739816.1618453573@sss.pgh.pa.us>
Permalink:  ../3739816.1618453573@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3739816.1618453573@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tmunro@postgresql.org
  Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
  In-Reply-To: <3739816.1618453573@sss.pgh.pa.us>
  References: <E1lGXKf-0007dm-Ix@gemulon.postgresql.org> <3739816.1618453573@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox