pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use signal-safe functions in signal handler
Date: Wed, 06 Dec 2023 09:23:11 +0000
Message-ID: <E1rAo7b-008qri-68@gemulon.postgresql.org> (raw)

Use signal-safe functions in signal handler

According to signal-safety(7), exit(3) and puts(3) are not safe to call
in a signal handler.

Author: Tristan Partin <tristan@neon.tech>
Discussion: https://www.postgresql.org/message-id/flat/CTVDKVZCCVSY.1XQ87UL50KQRD%40gonk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/52e98d45023027de0fa8e4eee2d53e2c20185812

Modified Files
--------------
src/bin/pg_test_fsync/pg_test_fsync.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1rAo7b-008qri-68@gemulon.postgresql.org>
Permalink:  ../E1rAo7b-008qri-68@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rAo7b-008qri-68@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use signal-safe functions in signal handler
  In-Reply-To: <E1rAo7b-008qri-68@gemulon.postgresql.org>

* 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