pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: pgsql-hackers@postgresql.org
Cc: andres@anarazel.de
Cc: noah@leadboat.com
Subject: Re: common signal handler protection
Date: Tue, 21 Nov 2023 16:40:06 -0600
Message-ID: <20231121224006.GA3747740@nathanxps13> (raw)
In-Reply-To: <20231121212008.GA3742740@nathanxps13>
References: <20231121212008.GA3742740@nathanxps13>

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





view thread (18+ messages)  latest in thread

Message-ID: <20231121224006.GA3747740@nathanxps13>
Permalink:  ../20231121224006.GA3747740@nathanxps13/
Also on:    postgresql.org/message-id/20231121224006.GA3747740@nathanxps13

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, andres@anarazel.de, noah@leadboat.com
  Subject: Re: common signal handler protection
  In-Reply-To: <20231121224006.GA3747740@nathanxps13>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox