]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove unnecessary signal handler change
authorÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 29 May 2026 18:53:06 +0000 (20:53 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 29 May 2026 18:53:06 +0000 (20:53 +0200)
In reality, this changes nothing, since the signal handler in bgworkers
is already die() since commit d62dca3b2974.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/e60318b8-be75-4bfd-82f0-0829f51fa839@gmail.com

src/backend/commands/repack_worker.c

index ddf070eae0727fab1c9ec7b3728792728b4c0cc8..533de150e48d8cbb0db091d194bca413c0d05dfd 100644 (file)
@@ -69,11 +69,6 @@ RepackWorkerMain(Datum main_arg)
 
        am_repack_worker = true;
 
-       /*
-        * Override the default bgworker_die() with die() so we can use
-        * CHECK_FOR_INTERRUPTS().
-        */
-       pqsignal(SIGTERM, die);
        BackgroundWorkerUnblockSignals();
 
        seg = dsm_attach(DatumGetUInt32(main_arg));