aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_expr.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2023-10-16 12:43:24 -0500
committerNathan Bossart <nathan@postgresql.org>2023-10-16 12:43:24 -0500
commit882e522d64686ade162091a572118da2562f3569 (patch)
treea433d29a5980407ed39c7fef155a0465681b13f4 /src/backend/jit/llvm/llvmjit_expr.c
parentfdfb141a7467ef61396e6f697a45d0470285c657 (diff)
downloadpostgresql-882e522d64686ade162091a572118da2562f3569.tar.gz
postgresql-882e522d64686ade162091a572118da2562f3569.zip
Move extra code out of the Pre/PostRestoreCommand() section.
If SIGTERM is received within this section, the startup process will immediately proc_exit() in the signal handler, so it is inadvisable to include any more code than is required there (as such code is unlikely to be compatible with doing proc_exit() in a signal handler). This commit moves the code recently added to this section (see 1b06d7bac9 and 7fed801135) to outside of the section. This ensures that the startup process only calls proc_exit() in its SIGTERM handler for the duration of the system() call, which is how this code worked from v8.4 to v14. Reported-by: Michael Paquier, Thomas Munro Analyzed-by: Andres Freund Suggested-by: Tom Lane Reviewed-by: Michael Paquier, Robert Haas, Thomas Munro, Andres Freund Discussion: https://postgr.es/m/Y9nGDSgIm83FHcad%40paquier.xyz Discussion: https://postgr.es/m/20230223231503.GA743455%40nathanxps13 Backpatch-through: 15
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_expr.c')
0 files changed, 0 insertions, 0 deletions