Re: psql not responding to SIGINT upon db reconnection - Mailing list pgsql-hackers

From Tristan Partin
Subject Re: psql not responding to SIGINT upon db reconnection
Date
Msg-id CXGM82ZEGMR2.8EX2V7UBFIK3@neon.tech
Whole thread Raw
In response to Re: psql not responding to SIGINT upon db reconnection  ("Tristan Partin" <tristan@neon.tech>)
Responses Re: psql not responding to SIGINT upon db reconnection
List pgsql-hackers
On Wed Nov 29, 2023 at 11:48 AM CST, Tristan Partin wrote:
> I am not completely in love with the code I have written. Lots of
> conditional compilation which makes it hard to read. Looking forward to
> another round of review to see what y'all think.

Ok. Here is a patch which just uses select(2) with a timeout of 1s or
pselect(2) if it is available. I also moved the state machine processing
into its own function.

Thanks for your comments thus far.

--
Tristan Partin
Neon (https://neon.tech)

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: backtrace_on_internal_error
Next
From: "Tristan Partin"
Date:
Subject: Remove WIN32 conditional compilation from win32common.c