Re: common signal handler protection

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: andres(at)anarazel(dot)de, noah(at)leadboat(dot)com
Subject: Re: common signal handler protection
Date: 2023-11-21 22:40:06
Message-ID: 20231121224006.GA3747740@nathanxps13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 21, 2023 at 03:20:08PM -0600, Nathan Bossart wrote:
> +#ifdef NSIG
> +#define PG_NSIG (NSIG)
> +#else
> +#define PG_NSIG (64) /* XXX: wild guess */
> +#endif

> + Assert(signo < PG_NSIG);

cfbot seems unhappy with this on Windows. IIUC we need to use
PG_SIGNAL_COUNT there instead, but I'd like to find a way to have just one
macro for all platforms.

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ivan Trofimov 2023-11-21 22:58:48 WIP: libpq: add a possibility to not send D(escribe) when executing a prepared statement
Previous Message Bruce Momjian 2023-11-21 21:57:03 Re: Changing baserel to foreignrel in postgres_fdw functions