From e747c5871855434570c7d3710b391b863d90f03a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 27 Jun 1998 04:53:49 +0000 Subject: Fix for hang after postmaster restart. Add new proc_exit and shmem_exit to replace exitpg(). --- src/backend/storage/ipc/ipci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/backend/storage/ipc/ipci.c') 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); } -- cgit v1.2.3