提交 e43d51fd 编写于 作者: T Tom Lane

ISTM that IsUnderPostmaster should mean we are a child process of the

postmaster ... it should not be set in the postmaster itself.
上级 85c2d1c4
......@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.243 2001/09/21 20:31:48 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.244 2001/09/30 20:08:18 tgl Exp $
*
* NOTES
*
......@@ -312,8 +312,6 @@ PostmasterMain(int argc, char *argv[])
char original_extraoptions[MAXPGPATH];
char *potential_DataDir = NULL;
IsUnderPostmaster = true; /* so that backends know this */
*original_extraoptions = '\0';
progname = argv[0];
......@@ -1935,6 +1933,8 @@ DoBackend(Port *port)
* Let's clean up ourselves as the postmaster child
*/
IsUnderPostmaster = true; /* we are a postmaster subprocess now */
/* We don't want the postmaster's proc_exit() handlers */
on_exit_reset();
......@@ -2317,6 +2317,8 @@ SSDataBase(int xlop)
beos_backend_startup();
#endif
IsUnderPostmaster = true; /* we are a postmaster subprocess now */
/* Lose the postmaster's on-exit routines and port connections */
on_exit_reset();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册