From 212c905e2c5a5f470d5ecd1fa45241ca41a98308 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 29 May 1998 17:00:34 +0000 Subject: Remove fork()/exec() and only do fork(). Small cleanups. --- src/backend/utils/init/postinit.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/init/postinit.c') diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 76042390cc0..27bb849a08b 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.27 1998/04/05 21:04:43 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.28 1998/05/29 17:00:21 momjian Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -384,8 +384,11 @@ forcesharedmemory: #endif - PostgresIpcKey = key; - AttachSharedMemoryAndSemaphores(key); + if (!IsUnderPostmaster) /* postmaster already did this */ + { + PostgresIpcKey = key; + AttachSharedMemoryAndSemaphores(key); + } } -- cgit v1.2.3