Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 48a94aa

Browse files
committed
Rename proc_exit_clear to on_exit_reset.
1 parent e747c58 commit 48a94aa

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/backend/postmaster/postmaster.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.90 1998/06/27 04:53:31 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.91 1998/06/27 13:24:19 momjian Exp $
1414
*
1515
* NOTES
1616
*
@@ -1226,7 +1226,7 @@ DoBackend(Port *port)
12261226
* Let's clean up ourselves as the postmaster child
12271227
*/
12281228

1229-
clear_proc_exit(); /* we don't want the postmaster's proc_exit() handlers */
1229+
on_exit_reset(); /* we don't want the postmaster's proc_exit() handlers */
12301230

12311231
/* ----------------
12321232
* register signal handlers.

src/backend/storage/ipc/ipc.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.27 1998/06/27 04:53:34 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.28 1998/06/27 13:24:20 momjian Exp $
1111
*
1212
* NOTES
1313
*
@@ -215,14 +215,15 @@ on_shmem_exit(void (*function) (), caddr_t arg)
215215
}
216216

217217
/* ----------------------------------------------------------------
218-
* clear_proc_exit
218+
* on_exit_reset
219219
*
220220
* this function clears all proc_exit() registered functions.
221221
* ----------------------------------------------------------------
222222
*/
223223
void
224-
clear_proc_exit(void)
224+
on_exit_reset(void)
225225
{
226+
on_shmem_exit_index = 0;
226227
on_proc_exit_index = 0;
227228
}
228229

src/include/storage/ipc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: ipc.h,v 1.27 1998/06/27 04:53:49 momjian Exp $
9+
* $Id: ipc.h,v 1.28 1998/06/27 13:24:21 momjian Exp $
1010
*
1111
* NOTES
1212
* This file is very architecture-specific. This stuff should actually
@@ -75,7 +75,7 @@ extern void proc_exit(int code);
7575
extern void shmem_exit(int code);
7676
extern int on_shmem_exit(void (*function) (), caddr_t arg);
7777
extern int on_proc_exit(void (*function) (), caddr_t arg);
78-
extern void clear_proc_exit(void);
78+
extern void on_exit_reset(void);
7979

8080
extern IpcSemaphoreId
8181
IpcSemaphoreCreate(IpcSemaphoreKey semKey,

0 commit comments

Comments
 (0)