mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Fix Win32 problems with signals and sockets, by making the forkexec code
even uglier than it was already :-(. Also, on Windows only, use temporary shared memory segments instead of ordinary files to pass over critical variable values from postmaster to child processes. Magnus Hagander
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.92 2004/11/05 17:11:17 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.93 2004/11/17 00:14:09 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -118,9 +118,6 @@ main(int argc, char *argv[])
|
||||
argv[0], err);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Start our win32 signal implementation */
|
||||
pgwin32_signal_initialize();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -281,6 +278,16 @@ main(int argc, char *argv[])
|
||||
exit(SubPostmasterMain(argc, argv));
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
/*
|
||||
* Start our win32 signal implementation
|
||||
*
|
||||
* SubPostmasterMain() will do this for itself, but the remaining
|
||||
* modes need it here
|
||||
*/
|
||||
pgwin32_signal_initialize();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If the first argument is "-boot", then invoke bootstrap mode. (This
|
||||
* path is taken only for a standalone bootstrap process.)
|
||||
|
||||
Reference in New Issue
Block a user