pg_prewarm: make autoprewarm leader use standard SIGHUP and SIGTERM handlers.

Fujii Masao <fujii@postgresql.org>

Commit: 53f614f1302d56e5fbb98826c7eee3c715411184
Author: Fujii Masao <fujii@postgresql.org>
Date: 2020-11-06T17:08:06Z
Releases: 14.0
pg_prewarm: make autoprewarm leader use standard SIGHUP and SIGTERM handlers.

Commit 1e53fe0e70 changed background processes so that they use
standard SIGHUP handler. Like that, this commit makes autoprewarm leader
process also use standard SIGHUP and SIGTERM handlers, to simplify the code.

Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/CALj2ACXPorUqePswDtOeM_s82v9RW32E1fYmOPZ5NuE+TWKj_A@mail.gmail.com

Files

PathChange+/−
contrib/pg_prewarm/autoprewarm.c modified +9 −46

Discussion