diff options
author | Andres Freund <andres@anarazel.de> | 2021-08-05 15:31:29 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2021-08-05 15:36:08 -0700 |
commit | 0de13bbc47d19c95de132cc85c341fdab079c170 (patch) | |
tree | a579bff3a308a0ef35611e5ce012c9a11a2c549b | |
parent | 07bf37850991c68a7038fb06186bddfd64c72faf (diff) | |
download | postgresql-0de13bbc47d19c95de132cc85c341fdab079c170.tar.gz postgresql-0de13bbc47d19c95de132cc85c341fdab079c170.zip |
Call pgwin32_signal_initialize() in postmaster as well.
This was an oversight in 07bf3785099. While it does reduce the benefit of the
simplification due to that commit, it still seems like a win to me.
It seems like it might be a good idea to have a function mirroring
InitPostmasterChild() / InitStandaloneProcess() for postmaster in miscinit.c
to make it easier to keep initialization between the three possible
environment in sync.
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210805214109.lzfk3r3ae37bahmv@alap3.anarazel.de
-rw-r--r-- | src/backend/postmaster/postmaster.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 18504765c23..fc0bc8d99ee 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -594,6 +594,13 @@ PostmasterMain(int argc, char *argv[]) IsPostmasterEnvironment = true; /* + * Start our win32 signal implementation + */ +#ifdef WIN32 + pgwin32_signal_initialize(); +#endif + + /* * We should not be creating any files or directories before we check the * data directory (see checkDataDir()), but just in case set the umask to * the most restrictive (owner-only) permissions. |