process startup: Centralize pgwin32_signal_initialize() calls.

Andres Freund <andres@anarazel.de>

Commit: 07bf37850991c68a7038fb06186bddfd64c72faf
Author: Andres Freund <andres@anarazel.de>
Date: 2021-08-05T19:36:06Z
Releases: 15.0
process startup: Centralize pgwin32_signal_initialize() calls.

For one, the existing location lead to somewhat awkward code in main(). For
another, the new location is easier to understand anyway.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de

Files

PathChange+/−
src/backend/main/main.c modified +9 −20
src/backend/postmaster/postmaster.c modified +0 −9
src/backend/utils/init/miscinit.c modified +18 −1

Discussion