Content-Length: 257461 | pFad | http://github.com/postgrespro/postgres_cluster/commit/5e6e2c8773dd8e3037d9195452dc5e423367e1b0

2A Reset shmem_exit_inprogress after shmem_exit() · postgrespro/postgres_cluster@5e6e2c8 · GitHub
Skip to content

Commit 5e6e2c8

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 632b4ae commit 5e6e2c8

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/5e6e2c8773dd8e3037d9195452dc5e423367e1b0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy