1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00
This commit is contained in:
Vadim B. Mikheev
2000-10-21 15:43:36 +00:00
parent 7c177a4908
commit a7fcadd10a
21 changed files with 1167 additions and 682 deletions

View File

@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.172 2000/10/16 14:52:08 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.173 2000/10/21 15:43:26 vadim Exp $
*
* NOTES
*
@@ -220,6 +220,10 @@ extern char *optarg;
extern int optind,
opterr;
extern char XLogDir[];
extern char ControlFilePath[];
extern void SetThisStartUpID(void);
/*
* postmaster.c - function prototypes
*/
@@ -600,6 +604,10 @@ PostmasterMain(int argc, char *argv[])
/* set up shared memory and semaphores */
reset_shared(PostPortName);
/* Init XLOG pathes */
snprintf(XLogDir, MAXPGPATH, "%s/pg_xlog", DataDir);
snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir);
/*
* Initialize the list of active backends. This list is only used for
* garbage collecting the backend processes.
@@ -1449,6 +1457,12 @@ reaper(SIGNAL_ARGS)
abort();
ShutdownPID = ShutdownDataBase();
}
/*
* Startup succeeded - remember its ID
*/
SetThisStartUpID();
pqsignal(SIGCHLD, reaper);
return;
}