Re: pg_receivewal and SIGTERM - Mailing list pgsql-hackers

From Christoph Berg
Subject Re: pg_receivewal and SIGTERM
Date
Msg-id YvuBL1tvlSNiFQUB@msg.df7cb.de
Whole thread Raw
In response to Re: pg_receivewal and SIGTERM  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: pg_receivewal and SIGTERM
Re: pg_receivewal and SIGTERM
List pgsql-hackers
Re: Daniel Gustafsson
> Do you think pg_recvlogical should support SIGTERM as well?  (The signals which
> it does trap should be added to the documentation which just now says "until
> terminated by a signal" but that's a separate thing.)

Ack, that makes sense, added in the attached updated patch.

>      pqsignal(SIGINT, sigint_handler);
> +    pqsignal(SIGTERM, sigint_handler);
> Tiny nitpick, I think we should rename sigint_handler to just sig_handler as it
> does handle more than sigint.

I went with sigexit_handler since pg_recvlogical has also a
sighup_handler and "sig_handler" would be confusing there.

Christoph

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Move NON_EXEC_STATIC from c.h
Next
From: Bharath Rupireddy
Date:
Subject: Re: pg_receivewal and SIGTERM