Handle SIGTERM in fe_utils/cancel.c

From: "Tristan Partin" <tristan(at)neon(dot)tech>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Handle SIGTERM in fe_utils/cancel.c
Date: 2023-05-22 17:26:34
Message-ID: CSSZDYRQQB7H.3SYPR0BMR3Q74@c3po
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

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.

[1]: https://www.postgresql.org/message-id/17698-58a6ab8caec496b0%40postgresql.org
[2]: https://www.postgresql.org/message-id/CSSWBAX56CVY.291H6ZNNHK7EO%40c3po

--
Tristan Partin
Neon (https://neon.tech)

Attachment Content-Type Size
v1-0001-Handle-SIGTERM-in-fe_utils-cancel.c.patch text/x-patch 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2023-05-22 17:31:54 Re: Make pgbench exit on SIGINT more reliably
Previous Message Matthias van de Meent 2023-05-22 17:14:19 Re: RFI: Extending the TOAST Pointer