Fix signal handling in logical replication workers

Peter Eisentraut <peter_e@gmx.net>

Commit: 9fcf670c2efdf31233d429f557ab77937f0f1e6a
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-06-02T18:49:23Z
Releases: 10.0
Fix signal handling in logical replication workers

The logical replication worker processes now use the normal die()
handler for SIGTERM and CHECK_FOR_INTERRUPTS() instead of custom code.
One problem before was that the apply worker would not exit promptly
when a subscription was dropped, which could lead to deadlocks.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>

Files