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

Commit 39035a5

Browse files
committed
Reset shmem_exit_inprogress after shmem_exit()
In ad9a274, shmem_exit_inprogress was introduced. But we need to reset it after shmem_exit(), because unlike the similar proc_exit(), shmem_exit() can also be called for cleanup when the process will not exit. Reported-by: Andrew Gierth <andrew@tao11.riddles.org.uk>
1 parent aacdf9a commit 39035a5

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)