mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
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
This commit is contained in:
@@ -4905,15 +4905,6 @@ SubPostmasterMain(int argc, char *argv[])
|
||||
/* Close the postmaster's sockets (as soon as we know them) */
|
||||
ClosePostmasterPorts(strcmp(argv[1], "--forklog") == 0);
|
||||
|
||||
/*
|
||||
* Start our win32 signal implementation. This has to be done after we
|
||||
* read the backend variables, because we need to pick up the signal pipe
|
||||
* from the parent process.
|
||||
*/
|
||||
#ifdef WIN32
|
||||
pgwin32_signal_initialize();
|
||||
#endif
|
||||
|
||||
/* Setup as postmaster child */
|
||||
InitPostmasterChild();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user