From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use SIGNAL_ARGS consistently to declare signal handlers. |
Date: | 2022-09-14 18:45:10 |
Message-ID: | E1oYXNl-000LR5-Kq@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Use SIGNAL_ARGS consistently to declare signal handlers.
Various bits of code were declaring signal handlers manually,
using "int signum" or variants of that. We evidently have no
platforms where that's actually wrong, but let's use our
SIGNAL_ARGS macro everywhere anyway. If nothing else, it's
good for finding signal handlers easily.
No need for back-patch, since this is just cosmetic AFAICS.
Discussion: https://postgr.es/m/2684964.1663167995@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b66fbd8afe6eb80e3e48495e002fda9aa92df583
Modified Files
--------------
src/backend/storage/ipc/pmsignal.c | 2 +-
src/bin/initdb/initdb.c | 6 +++---
src/bin/pg_basebackup/pg_receivewal.c | 2 +-
src/bin/pg_basebackup/pg_recvlogical.c | 4 ++--
src/bin/pg_ctl/pg_ctl.c | 6 +++---
src/bin/pg_test_fsync/pg_test_fsync.c | 10 +++++-----
src/bin/pg_waldump/pg_waldump.c | 2 +-
src/include/port.h | 2 +-
src/test/regress/pg_regress.c | 6 +++---
9 files changed, 20 insertions(+), 20 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-09-14 19:37:06 | Re: pgsql: Move gramparse.h to src/backend/parser |
Previous Message | Daniel Gustafsson | 2022-09-14 17:03:53 | Re: pgsql: Handle SIGTERM in pg_receivewal and pg_recvlogical |