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 08:56:13
Message-ID: 7325a574-26f9-ffd3-0cd3-030845df3df8@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06.07.23 22:43, Tristan Partin wrote:
> /* Finish incomplete line on stdout */
> - puts("");
> - exit(1);
> + write(STDOUT_FILENO, "", 1);
> + _exit(1);

puts() writes a newline, so it should probably be something like

write(STDOUT_FILENO, "\n", 1);

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Banck 2023-07-12 09:23:06 Re: pg_upgrade instructions involving "rsync --size-only" might lead to standby corruption?
Previous Message Michael Paquier 2023-07-12 08:46:31 Re: Support to define custom wait events for extensions