Re: common signal handler protection - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: common signal handler protection
Date
Msg-id 20231129031652.GB479372@nathanxps13
Whole thread Raw
In response to Re: common signal handler protection  (Andres Freund <andres@anarazel.de>)
Responses Re: common signal handler protection
List pgsql-hackers
On Tue, Nov 28, 2023 at 06:37:50PM -0800, Andres Freund wrote:
> For a moment I was, wrongly, worried this would break signal handlers we
> intentionally inherit from postmaster. It's fine though, because we block
> signals in fork_process() until somewhere in InitPostmasterChild(), after
> we've called InitProcessGlobals(). But perhaps that should be commented upon
> somewhere?

Good call.  I expanded on the MyProcPid assertion in wrapper_handler() a
bit.

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

Attachment

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: shveta malik
Date:
Subject: Re: Synchronizing slots from primary to standby