diff options
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index e9a7d86f3d8..0e52aff2c50 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.315 2003/04/26 02:57:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.316 2003/05/02 21:52:42 momjian Exp $ * * NOTES * @@ -172,6 +172,13 @@ static int ServerSock_INET = INVALID_SOCK; /* stream socket server */ static int ServerSock_UNIX = INVALID_SOCK; /* stream socket server */ #endif +/* Used to reduce macros tests */ +#ifdef EXEC_BACKEND +const bool ExecBackend = true; +#else +const bool ExecBackend = false; +#endif + /* * Set by the -o option */ @@ -1403,7 +1410,11 @@ processCancelRequest(Port *port, void *pkt) elog(DEBUG1, "processCancelRequest: CheckPointPID in cancel request for process %d", backendPID); return; } - + else if (ExecBackend) + { + AttachSharedMemoryAndSemaphores(); + } + /* See if we have a matching backend */ for (curr = DLGetHead(BackendList); curr; curr = DLGetSucc(curr)) |