diff options
| author | Bruce Momjian <bruce@momjian.us> | 1998-05-29 17:00:34 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1998-05-29 17:00:34 +0000 |
| commit | 212c905e2c5a5f470d5ecd1fa45241ca41a98308 (patch) | |
| tree | d5c2aedf587c7263c2828c99648fbd367e867c61 /src/backend/utils/init/postinit.c | |
| parent | 2d4c6cab962fa17486ad2843f4d2bf0e5eec3628 (diff) | |
Remove fork()/exec() and only do fork(). Small cleanups.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
| -rw-r--r-- | src/backend/utils/init/postinit.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); + } } |
