Re: Clean up some signal usage mainly related to Windows - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Clean up some signal usage mainly related to Windows
Date
Msg-id 95fecc44-0d83-b53d-e40d-870b758ddc1e@eisentraut.org
Whole thread Raw
In response to Re: Clean up some signal usage mainly related to Windows  ("Tristan Partin" <tristan@neon.tech>)
Responses Re: Clean up some signal usage mainly related to Windows
List pgsql-hackers
On 12.07.23 16:23, Tristan Partin wrote:
> It has come to my attention that STDOUT_FILENO might not be portable and
> fileno(3) isn't marked as signal-safe, so I have just used the raw 1 for
> stdout, which as far as I know is portable.

We do use STDOUT_FILENO elsewhere in the code, and there are even 
workaround definitions for Windows, so it appears it is meant to be used.




pgsql-hackers by date:

Previous
From: "Tristan Partin"
Date:
Subject: Re: Use COPY for populating all pgbench tables
Next
From: "Tristan Partin"
Date:
Subject: Re: Clean up some signal usage mainly related to Windows