Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48a94aa

Browse files
committed
Rename proc_exit_clear to on_exit_reset.
1 parente747c58 commit48a94aa

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
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/2704:53:31 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.91 1998/06/2713: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

Lines changed: 4 additions & 3 deletions
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/2704:53:34 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.28 1998/06/2713: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

Lines changed: 2 additions & 2 deletions
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/2704:53:49 momjian Exp $
9+
* $Id: ipc.h,v 1.28 1998/06/2713: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
externvoidshmem_exit(intcode);
7676
externinton_shmem_exit(void (*function) (),caddr_targ);
7777
externinton_proc_exit(void (*function) (),caddr_targ);
78-
externvoidclear_proc_exit(void);
78+
externvoidon_exit_reset(void);
7979

8080
externIpcSemaphoreId
8181
IpcSemaphoreCreate(IpcSemaphoreKeysemKey,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp