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

Commit5e6e2c8

Browse files
committed
Reset shmem_exit_inprogress after shmem_exit()
Inad9a274, shmem_exit_inprogress wasintroduced. But we need to reset it after shmem_exit(), because unlikethe similar proc_exit(), shmem_exit() can also be called for cleanupwhen the process will not exit.Reported-by: Andrew Gierth <andrew@tao11.riddles.org.uk>
1 parent632b4ae commit5e6e2c8

File tree

1 file changed

+2
-0
lines changed
  • src/backend/storage/ipc

1 file changed

+2
-0
lines changed

‎src/backend/storage/ipc/ipc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ shmem_exit(int code)
272272
on_shmem_exit_list[on_shmem_exit_index].function(code,
273273
on_shmem_exit_list[on_shmem_exit_index].arg);
274274
on_shmem_exit_index=0;
275+
276+
shmem_exit_inprogress= false;
275277
}
276278

277279
/* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp