Commit 83709a0
committed
Use SIGURG rather than SIGUSR1 for latches.
Traditionally, SIGUSR1 has been overloaded for ad-hoc signals,
procsignal.c signals and latch.c wakeups. Move that last use over to a
new dedicated signal. SIGURG is normally used to report out-of-band
socket data, but PostgreSQL doesn't use that facility.
The signal handler is now installed in all postmaster children by
InitializeLatchSupport(). Those wishing to disconnect from it should
call ShutdownLatchSupport().
Future patches will use this separation of signals to avoid the need for
a signal handler on some operating systems.
Discussion: https://postgr.es/m/CA+hUKGJjxPDpzBE0a3hyUywBvaZuC89yx3jK9RFZgfv_KHU7gg@mail.gmail.com1 parent c8f3bc2 commit 83709a0
File tree
5 files changed
+40
-46
lines changed- src
- backend
- postmaster
- storage/ipc
- include/storage
5 files changed
+40
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | 716 | | |
733 | 717 | | |
734 | 718 | | |
| |||
759 | 743 | | |
760 | 744 | | |
761 | 745 | | |
| 746 | + | |
762 | 747 | | |
763 | 748 | | |
764 | 749 | | |
| |||
786 | 771 | | |
787 | 772 | | |
788 | 773 | | |
789 | | - | |
| 774 | + | |
790 | 775 | | |
791 | 776 | | |
792 | 777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
270 | 291 | | |
271 | 292 | | |
272 | 293 | | |
| |||
335 | 356 | | |
336 | 357 | | |
337 | 358 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | 359 | | |
343 | 360 | | |
344 | 361 | | |
| |||
562 | 579 | | |
563 | 580 | | |
564 | 581 | | |
565 | | - | |
| 582 | + | |
566 | 583 | | |
567 | 584 | | |
568 | 585 | | |
| |||
1266 | 1283 | | |
1267 | 1284 | | |
1268 | 1285 | | |
1269 | | - | |
| 1286 | + | |
1270 | 1287 | | |
1271 | 1288 | | |
1272 | 1289 | | |
| |||
1934 | 1951 | | |
1935 | 1952 | | |
1936 | 1953 | | |
| 1954 | + | |
1937 | 1955 | | |
1938 | | - | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
| 1956 | + | |
1943 | 1957 | | |
1944 | | - | |
1945 | | - | |
| 1958 | + | |
1946 | 1959 | | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
| 1960 | + | |
| 1961 | + | |
1950 | 1962 | | |
| 1963 | + | |
| 1964 | + | |
1951 | 1965 | | |
1952 | 1966 | | |
| 1967 | + | |
| 1968 | + | |
1953 | 1969 | | |
1954 | 1970 | | |
1955 | 1971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
693 | 691 | | |
694 | 692 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 183 | | |
0 commit comments