pg_prewarm: make autoprewarm leader use standard SIGHUP and SIGTERM handlers.
authorFujii Masao <fujii@postgresql.org>
Fri, 6 Nov 2020 17:08:06 +0000 (02:08 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 6 Nov 2020 17:08:06 +0000 (02:08 +0900)
commit53f614f1302d56e5fbb98826c7eee3c715411184
tree8c269bf9f55258d6f64eef479feee1e38056afe4
parent5ee180a3947060b98284a935f26f92c71d698f7c
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
contrib/pg_prewarm/autoprewarm.c