Use signal-safe functions in signal handler

Peter Eisentraut <peter@eisentraut.org>

Commit: 52e98d45023027de0fa8e4eee2d53e2c20185812
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-12-06T09:11:36Z
Releases: 17.0
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

Files

PathChange+/−
src/bin/pg_test_fsync/pg_test_fsync.c modified +2 −2

Discussion