diff options
| author | Bruce Momjian | 1998-06-27 04:53:49 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1998-06-27 04:53:49 +0000 |
| commit | e747c5871855434570c7d3710b391b863d90f03a (patch) | |
| tree | d5561395e67089241e7b6997c3a2df1b6f50f451 /src/backend/storage/ipc/ipci.c | |
| parent | 8fa93b016a8dd791be2031359af94588352da97f (diff) | |
Fix for hang after postmaster restart. Add new proc_exit and
shmem_exit to replace exitpg().
Diffstat (limited to 'src/backend/storage/ipc/ipci.c')
| -rw-r--r-- | src/backend/storage/ipc/ipci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index e8aabe5a74f..4bcc15efd2e 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.13 1998/06/26 19:57:48 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.14 1998/06/27 04:53:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -92,7 +92,6 @@ CreateSharedMemoryAndSemaphores(IPCKey key) * ---------------- */ InitLocks(); - InitMultiLevelLocks(); if (InitMultiLevelLocks() == INVALID_TABLEID) elog(FATAL, "Couldn't create the lock table"); @@ -101,7 +100,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key) * ---------------- */ InitProcGlobal(key); - on_exitpg(ProcFreeAllSemaphores, NULL); + on_shmem_exit(ProcFreeAllSemaphores, NULL); CreateSharedInvalidationState(key); } |
