Re: Handle SIGTERM in fe_utils/cancel.c - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Handle SIGTERM in fe_utils/cancel.c
Date
Msg-id ZG1fqC72Y7+FWz/q@paquier.xyz
Whole thread Raw
In response to Handle SIGTERM in fe_utils/cancel.c  ("Tristan Partin" <tristan@neon.tech>)
Responses Re: Handle SIGTERM in fe_utils/cancel.c
List pgsql-hackers
On Mon, May 22, 2023 at 12:26:34PM -0500, Tristan Partin wrote:
> This is a way that would solve bug #17698[1]. It just reuses the same
> handler as SIGINT (with a function rename).
>
> This patch works best if it is combined with my previous submission[2].
> I can rebase that submission if and when this patch is pulled in.

Not sure that this is a good idea long-term.  Currently, the code
paths calling setup_cancel_handler() from cancel.c don't have a custom
handling for SIGTERM, but that may not be the case forever.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Large files for relations
Next
From: Michael Paquier
Date:
Subject: Re: unnecessary #include "pg_getopt.h"?