Re: pg_receivewal and SIGTERM - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: pg_receivewal and SIGTERM
Date
Msg-id 894AEB23-270C-4058-BB31-B5B46CAF7C12@yesql.se
Whole thread Raw
In response to Re: pg_receivewal and SIGTERM  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: pg_receivewal and SIGTERM
List pgsql-hackers
> On 16 Aug 2022, at 13:40, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Tue, Aug 16, 2022 at 5:06 PM Christoph Berg <myon@debian.org> wrote:

>> I went with sigexit_handler since pg_recvlogical has also a
>> sighup_handler and "sig_handler" would be confusing there.
>
> Can we move these signal handlers to streamutil.h/.c so that both
> pg_receivewal and pg_recvlogical can make use of it avoiding duplicate
> code?

In general that's a good idea, but they are so trivial that I don't really see
much point in doing that in this particular case.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: pg_receivewal and SIGTERM
Next
From: Christoph Berg
Date:
Subject: Re: pg_receivewal and SIGTERM