pgsql: Use signal-safe functions in signal handler - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Use signal-safe functions in signal handler
Date
Msg-id E1rAo7b-008qri-68@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix compilation on Windows with WAL_DEBUG
Next
From: Nathan Bossart
Date:
Subject: pgsql: Suppress -Wunused-result warning about write().