summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1998-06-27 13:24:21 +0000
committerBruce Momjian1998-06-27 13:24:21 +0000
commit48a94aaf511b3a9e67774e916654a3cd28fc8fd3 (patch)
tree4e06ac2946837611c2f2a997666c4f3aef471abf
parente747c5871855434570c7d3710b391b863d90f03a (diff)
Rename proc_exit_clear to on_exit_reset.
-rw-r--r--src/backend/postmaster/postmaster.c4
-rw-r--r--src/backend/storage/ipc/ipc.c7
-rw-r--r--src/include/storage/ipc.h4
3 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 941d8ed119c..28793522c08 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.90 1998/06/27 04:53:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.91 1998/06/27 13:24:19 momjian Exp $
*
* NOTES
*
@@ -1226,7 +1226,7 @@ DoBackend(Port *port)
* Let's clean up ourselves as the postmaster child
*/
- clear_proc_exit(); /* we don't want the postmaster's proc_exit() handlers */
+ on_exit_reset(); /* we don't want the postmaster's proc_exit() handlers */
/* ----------------
* register signal handlers.
diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c
index e1ef1119efb..9037f665099 100644
--- a/src/backend/storage/ipc/ipc.c
+++ b/src/backend/storage/ipc/ipc.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.27 1998/06/27 04:53:34 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.28 1998/06/27 13:24:20 momjian Exp $
*
* NOTES
*
@@ -215,14 +215,15 @@ on_shmem_exit(void (*function) (), caddr_t arg)
}
/* ----------------------------------------------------------------
- * clear_proc_exit
+ * on_exit_reset
*
* this function clears all proc_exit() registered functions.
* ----------------------------------------------------------------
*/
void
-clear_proc_exit(void)
+on_exit_reset(void)
{
+ on_shmem_exit_index = 0;
on_proc_exit_index = 0;
}
diff --git a/src/include/storage/ipc.h b/src/include/storage/ipc.h
index 778c54e2071..c208122d8ba 100644
--- a/src/include/storage/ipc.h
+++ b/src/include/storage/ipc.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: ipc.h,v 1.27 1998/06/27 04:53:49 momjian Exp $
+ * $Id: ipc.h,v 1.28 1998/06/27 13:24:21 momjian Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
@@ -75,7 +75,7 @@ extern void proc_exit(int code);
extern void shmem_exit(int code);
extern int on_shmem_exit(void (*function) (), caddr_t arg);
extern int on_proc_exit(void (*function) (), caddr_t arg);
-extern void clear_proc_exit(void);
+extern void on_exit_reset(void);
extern IpcSemaphoreId
IpcSemaphoreCreate(IpcSemaphoreKey semKey,