forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1a2ae7c
committed
Use standard SIGHUP and SIGTERM handlers in walreceiver.
Commit1e53fe0 changed background processes so that they usestandard SIGHUP handler. Like that, this commit makes walreceiveruse standard SIGHUP and SIGTERM handlers, to simplify the code.As the side effect of this commit, walreceiver can wake up and processthe configuration files promptly when receiving SIGHUP. Because thestandard SIGHUP handler sets the latch. On the other hand, previouslythere could be a time lag between the receipt of SIGHUP andthe process of configuration files since the dedicated handler didn'tset the latch.Author: Bharath Rupireddy, tweaked by Fujii MasaoReviewed-by: Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/CALj2ACXPorUqePswDtOeM_s82v9RW32E1fYmOPZ5NuE+TWKj_A@mail.gmail.com1 parent8ca8208 commit1a2ae7c
1 file changed
+10
-43
lines changedLines changed: 10 additions & 43 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 | 107 |
| |
115 | 108 |
| |
116 | 109 |
| |
| |||
135 | 128 |
| |
136 | 129 |
| |
137 | 130 |
| |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 | 131 |
| |
144 | 132 |
| |
145 | 133 |
| |
| |||
164 | 152 |
| |
165 | 153 |
| |
166 | 154 |
| |
167 |
| - | |
| 155 | + | |
168 | 156 |
| |
169 | 157 |
| |
170 | 158 |
| |
| |||
267 | 255 |
| |
268 | 256 |
| |
269 | 257 |
| |
270 |
| - | |
| 258 | + | |
| 259 | + | |
271 | 260 |
| |
272 |
| - | |
| 261 | + | |
273 | 262 |
| |
274 | 263 |
| |
275 | 264 |
| |
| |||
441 | 430 |
| |
442 | 431 |
| |
443 | 432 |
| |
444 |
| - | |
| 433 | + | |
445 | 434 |
| |
446 |
| - | |
| 435 | + | |
447 | 436 |
| |
448 | 437 |
| |
449 | 438 |
| |
| |||
510 | 499 |
| |
511 | 500 |
| |
512 | 501 |
| |
513 |
| - | |
| 502 | + | |
514 | 503 |
| |
515 | 504 |
| |
516 | 505 |
| |
517 | 506 |
| |
518 | 507 |
| |
519 | 508 |
| |
520 | 509 |
| |
521 |
| - | |
| 510 | + | |
522 | 511 |
| |
523 | 512 |
| |
524 | 513 |
| |
| |||
669 | 658 |
| |
670 | 659 |
| |
671 | 660 |
| |
672 |
| - | |
| 661 | + | |
673 | 662 |
| |
674 | 663 |
| |
675 | 664 |
| |
| |||
701 | 690 |
| |
702 | 691 |
| |
703 | 692 |
| |
704 |
| - | |
| 693 | + | |
705 | 694 |
| |
706 | 695 |
| |
707 | 696 |
| |
| |||
806 | 795 |
| |
807 | 796 |
| |
808 | 797 |
| |
809 |
| - | |
810 |
| - | |
811 |
| - | |
812 |
| - | |
813 |
| - | |
814 |
| - | |
815 |
| - | |
816 |
| - | |
817 |
| - | |
818 |
| - | |
819 |
| - | |
820 |
| - | |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
827 |
| - | |
828 |
| - | |
829 |
| - | |
830 |
| - | |
831 | 798 |
| |
832 | 799 |
| |
833 | 800 |
| |
|
0 commit comments
Comments
(0)