1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-05 07:41:25 +03:00

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
This commit is contained in:
Tom Lane
2022-09-14 14:44:45 -04:00
parent ab393528fa
commit b66fbd8afe
9 changed files with 20 additions and 20 deletions

View File

@@ -850,7 +850,7 @@ read_post_opts(void)
* waiting for the server to start up, the server launch is aborted.
*/
static void
trap_sigint_during_startup(int sig)
trap_sigint_during_startup(SIGNAL_ARGS)
{
if (postmasterPID != -1)
{
@@ -863,8 +863,8 @@ trap_sigint_during_startup(int sig)
* Clear the signal handler, and send the signal again, to terminate the
* process as normal.
*/
pqsignal(SIGINT, SIG_DFL);
raise(SIGINT);
pqsignal(postgres_signal_arg, SIG_DFL);
raise(postgres_signal_arg);
}
static char *