Commit 2c48f5d
committed
Use standard interrupt handling in logical replication launcher.
Previously the exit handling was only able to exit from within the
main loop, and not from within the backend code it calls. Fix that by
using the standard die() SIGTERM handler, and adding the necessary
CHECK_FOR_INTERRUPTS() call.
This requires adding yet another process-type-specific branch to
ProcessInterrupts(), which hints that we probably should generalize
that handling. But that's work for another day.
Author: Petr Jelinek
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/fe072153-babd-3b5d-8052-73527a6eb657@2ndquadrant.com1 parent 5fd56b9 commit 2c48f5d
File tree
3 files changed
+27
-25
lines changed- src
- backend
- replication/logical
- tcop
- include/replication
3 files changed
+27
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
634 | 633 | | |
635 | 634 | | |
636 | 635 | | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | 636 | | |
652 | 637 | | |
653 | 638 | | |
| |||
809 | 794 | | |
810 | 795 | | |
811 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
812 | 800 | | |
813 | 801 | | |
814 | | - | |
| 802 | + | |
815 | 803 | | |
816 | 804 | | |
817 | | - | |
818 | | - | |
819 | 805 | | |
820 | 806 | | |
821 | 807 | | |
822 | 808 | | |
823 | 809 | | |
824 | 810 | | |
825 | 811 | | |
826 | | - | |
| 812 | + | |
827 | 813 | | |
828 | 814 | | |
829 | 815 | | |
| |||
833 | 819 | | |
834 | 820 | | |
835 | 821 | | |
| 822 | + | |
| 823 | + | |
836 | 824 | | |
837 | 825 | | |
838 | 826 | | |
| |||
909 | 897 | | |
910 | 898 | | |
911 | 899 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
| 900 | + | |
| 901 | + | |
917 | 902 | | |
918 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
919 | 910 | | |
920 | 911 | | |
921 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
2848 | 2849 | | |
2849 | 2850 | | |
2850 | 2851 | | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2851 | 2860 | | |
2852 | 2861 | | |
2853 | 2862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
0 commit comments