Fix pool_signal.
authorTatsuo Ishii <ishii@postgresql.org>
Sun, 12 Jan 2025 05:22:37 +0000 (14:22 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sun, 12 Jan 2025 05:22:37 +0000 (14:22 +0900)
commitabcff550b1930f1e02b69f3f844eb071d3b18ec8
tree4a35998a817d08b97dd89447b807cf6d411f028e
parent08c6268d5bb0392959efe4dfcc8f1b51e83969b4
Fix pool_signal.

Previously pool_signal did not set SA_RESTART flag.  Thus any system
calls interrupted by a signal does not restart. Some of our code are
prepared so that they restart if a system call is interrupted by a
signal. But not sure all places are prepared too. So add the
flag. Note, PostgreSQL always uses the flag.
src/utils/pool_signal.c