Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite43d51f

Browse files
committed
ISTM that IsUnderPostmaster should mean we are a child process of the
postmaster ... it should not be set in the postmaster itself.
1 parent85c2d1c commite43d51f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.243 2001/09/21 20:31:48 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.244 2001/09/30 20:08:18 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -312,8 +312,6 @@ PostmasterMain(int argc, char *argv[])
312312
charoriginal_extraoptions[MAXPGPATH];
313313
char*potential_DataDir=NULL;
314314

315-
IsUnderPostmaster= true;/* so that backends know this */
316-
317315
*original_extraoptions='\0';
318316

319317
progname=argv[0];
@@ -1935,6 +1933,8 @@ DoBackend(Port *port)
19351933
* Let's clean up ourselves as the postmaster child
19361934
*/
19371935

1936+
IsUnderPostmaster= true;/* we are a postmaster subprocess now */
1937+
19381938
/* We don't want the postmaster's proc_exit() handlers */
19391939
on_exit_reset();
19401940

@@ -2317,6 +2317,8 @@ SSDataBase(int xlop)
23172317
beos_backend_startup();
23182318
#endif
23192319

2320+
IsUnderPostmaster= true;/* we are a postmaster subprocess now */
2321+
23202322
/* Lose the postmaster's on-exit routines and port connections */
23212323
on_exit_reset();
23222324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp