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 7325a574-26f9-ffd3-0cd3-030845df3df8@eisentraut.org
Whole thread Raw
In response to 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 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);




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support to define custom wait events for extensions
Next
From: Michael Banck
Date:
Subject: Re: pg_upgrade instructions involving "rsync --size-only" might lead to standby corruption?