Re: Converting pqsignal to void return

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Paul Ramsey <pramsey@cleverelephant.ca>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Nathan Bossart <nathandbossart@gmail.com>
Date: 2025-01-23T05:08:26Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Convert libpgport's pqsignal() to a void function.

  2. Check that MyProcPid == getpid() in backend signal handlers.

On Wed, Jan 22, 2025 at 09:01:09AM -0800, Paul Ramsey wrote:
> This is the Knowledge that was sitting right in front of me, but I could not see.
> From the road to Damascus,

Note also that there is some documentation showing how to write a
signal handler and what should not be done:
https://www.postgresql.org/docs/devel/source-conventions.html#SOURCE-CONVENTIONS-SIGNAL-HANDLERS

See also 0da096d78e1e, in the same spirit.
--
Michael