pgsql: Use signal-safe functions in signal handler

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use signal-safe functions in signal handler
Date: 2023-12-06 09:23:11
Message-ID: E1rAo7b-008qri-68@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)neon(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2023-12-06 23:18:42 pgsql: Suppress -Wunused-result warning about write().
Previous Message Michael Paquier 2023-12-06 05:12:26 pgsql: Fix compilation on Windows with WAL_DEBUG