diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 40ff1a661b38ed28360bcf7f4bd7f04f0bb537cc..85197e957ae317c2e8e30dff36e02216eac0723a 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -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();