diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-09-14 14:44:45 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-09-14 14:44:50 -0400 |
commit | b66fbd8afe6eb80e3e48495e002fda9aa92df583 (patch) | |
tree | 801155b20dee3af5b19d44c0f735ab5e1e7de132 /src/bin/pg_basebackup/pg_recvlogical.c | |
parent | ab393528fa4b2486237ee7aa51fac67f82fee824 (diff) | |
download | postgresql-b66fbd8afe6eb80e3e48495e002fda9aa92df583.tar.gz postgresql-b66fbd8afe6eb80e3e48495e002fda9aa92df583.zip |
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
Diffstat (limited to 'src/bin/pg_basebackup/pg_recvlogical.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_recvlogical.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index a86739ec126..4392e23e888 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -654,7 +654,7 @@ error: * possible moment. */ static void -sigexit_handler(int signum) +sigexit_handler(SIGNAL_ARGS) { time_to_abort = true; } @@ -663,7 +663,7 @@ sigexit_handler(int signum) * Trigger the output file to be reopened. */ static void -sighup_handler(int signum) +sighup_handler(SIGNAL_ARGS) { output_reopen = true; } |