Thread: pgsql: pg_prewarm: make autoprewarm leader use standard SIGHUP and SIGT

pgsql: pg_prewarm: make autoprewarm leader use standard SIGHUP and SIGT

From
Fujii Masao
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/53f614f1302d56e5fbb98826c7eee3c715411184

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c | 55 +++++++---------------------------------
1 file changed, 9 insertions(+), 46 deletions(-)