mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-24 00:47:19 +02:00
Reset shmem_exit_inprogress after shmem_exit()
In ad9a274778
, 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>
This commit is contained in:
parent
aacdf9a069
commit
39035a5289
@ -272,6 +272,8 @@ shmem_exit(int code)
|
||||
on_shmem_exit_list[on_shmem_exit_index].function(code,
|
||||
on_shmem_exit_list[on_shmem_exit_index].arg);
|
||||
on_shmem_exit_index = 0;
|
||||
|
||||
shmem_exit_inprogress = false;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user