Re: Clean up some signal usage mainly related to Windows

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tristan Partin <tristan(at)neon(dot)tech>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Clean up some signal usage mainly related to Windows
Date: 2023-07-12 14:31:23
Message-ID: 95fecc44-0d83-b53d-e40d-870b758ddc1e@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2023-07-12 14:35:58 Re: Clean up some signal usage mainly related to Windows
Previous Message Tristan Partin 2023-07-12 14:29:35 Re: Use COPY for populating all pgbench tables