forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc6d43ff
committed
Replace use of sys_siglist[] with strsignal().
This commit back-patches the v12-era commitsa73d083,cc92cca,and7570df0 into supported pre-v12 branches. The net effect is toeliminate our former dependency on the never-standard sys_siglist[]array, instead using POSIX-standard strsignal(3).What motivates doing this now is that glibc just removed sys_siglist[]from the set of symbols available to newly-built programs. While ourcode can survive without sys_siglist[], it then fails to print anydescription of the signal that killed a child process, which is anon-negligible loss of friendliness. We can expect that people willbe wanting to build the back branches on platforms that include thischange, so we need to do something.Since strsignal(3) has existed for quite a long time, and we've nothad any trouble with these patches so far in v12, it seems safe toback-patch into older branches.Discussion:https://postgr.es/m/3179114.1594853308@sss.pgh.pa.us1 parentc6d33d1 commitc6d43ff
File tree
12 files changed
+94
-84
lines changed- src
- backend/postmaster
- bin/pg_basebackup
- common
- include
- port
- test/regress
12 files changed
+94
-84
lines changedLines changed: 1 addition & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15004 | 15004 |
| |
15005 | 15005 |
| |
15006 | 15006 |
| |
15007 |
| - | |
| 15007 | + | |
15008 | 15008 |
| |
15009 | 15009 |
| |
15010 | 15010 |
| |
| |||
15893 | 15893 |
| |
15894 | 15894 |
| |
15895 | 15895 |
| |
15896 |
| - | |
15897 |
| - | |
15898 |
| - | |
15899 |
| - | |
15900 |
| - | |
15901 |
| - | |
15902 |
| - | |
15903 |
| - | |
15904 |
| - | |
15905 |
| - | |
15906 |
| - | |
15907 |
| - | |
15908 |
| - | |
15909 |
| - | |
15910 |
| - | |
15911 |
| - | |
15912 |
| - | |
15913 |
| - | |
15914 | 15896 |
| |
15915 | 15897 |
| |
15916 | 15898 |
| |
|
Lines changed: 1 addition & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1622 | 1622 |
| |
1623 | 1623 |
| |
1624 | 1624 |
| |
| 1625 | + | |
1625 | 1626 |
| |
1626 | 1627 |
| |
1627 | 1628 |
| |
| |||
1821 | 1822 |
| |
1822 | 1823 |
| |
1823 | 1824 |
| |
1824 |
| - | |
1825 |
| - | |
1826 |
| - | |
1827 |
| - | |
1828 |
| - | |
1829 |
| - | |
1830 |
| - | |
1831 |
| - | |
1832 | 1825 |
| |
1833 | 1826 |
| |
1834 | 1827 |
| |
|
Lines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
596 | 596 |
| |
597 | 597 |
| |
598 | 598 |
| |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 | 599 |
| |
607 | 600 |
| |
608 |
| - | |
609 |
| - | |
| 601 | + | |
| 602 | + | |
610 | 603 |
| |
611 | 604 |
| |
612 | 605 |
| |
|
Lines changed: 4 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3563 | 3563 |
| |
3564 | 3564 |
| |
3565 | 3565 |
| |
| 3566 | + | |
3566 | 3567 |
| |
3567 | 3568 |
| |
3568 | 3569 |
| |
| |||
3573 | 3574 |
| |
3574 | 3575 |
| |
3575 | 3576 |
| |
3576 |
| - | |
| 3577 | + | |
3577 | 3578 |
| |
3578 | 3579 |
| |
3579 | 3580 |
| |
3580 | 3581 |
| |
3581 | 3582 |
| |
3582 | 3583 |
| |
3583 | 3584 |
| |
3584 |
| - | |
3585 |
| - | |
3586 |
| - | |
3587 |
| - | |
3588 |
| - | |
3589 |
| - | |
3590 |
| - | |
3591 |
| - | |
3592 |
| - | |
3593 |
| - | |
3594 |
| - | |
| 3585 | + | |
3595 | 3586 |
| |
3596 | 3587 |
| |
| 3588 | + | |
3597 | 3589 |
| |
3598 | 3590 |
| |
3599 | 3591 |
| |
|
Lines changed: 6 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2014 | 2014 |
| |
2015 | 2015 |
| |
2016 | 2016 |
| |
2017 |
| - | |
| 2017 | + | |
2018 | 2018 |
| |
2019 | 2019 |
| |
2020 | 2020 |
| |
| |||
2042 | 2042 |
| |
2043 | 2043 |
| |
2044 | 2044 |
| |
2045 |
| - | |
| 2045 | + | |
2046 | 2046 |
| |
2047 | 2047 |
| |
2048 | 2048 |
| |
| |||
2051 | 2051 |
| |
2052 | 2052 |
| |
2053 | 2053 |
| |
2054 |
| - | |
| 2054 | + | |
2055 | 2055 |
| |
2056 | 2056 |
| |
2057 |
| - | |
2058 |
| - | |
2059 |
| - | |
2060 |
| - | |
2061 |
| - | |
2062 |
| - | |
2063 |
| - | |
| 2057 | + | |
2064 | 2058 |
| |
2065 |
| - | |
2066 |
| - | |
| 2059 | + | |
| 2060 | + | |
2067 | 2061 |
| |
2068 | 2062 |
| |
2069 | 2063 |
| |
|
Lines changed: 4 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 | 64 |
| |
74 | 65 |
| |
75 |
| - | |
76 |
| - | |
| 66 | + | |
| 67 | + | |
77 | 68 |
| |
| 69 | + | |
78 | 70 |
| |
79 | 71 |
| |
80 | 72 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 | 185 |
| |
190 | 186 |
| |
191 | 187 |
| |
| |||
547 | 543 |
| |
548 | 544 |
| |
549 | 545 |
| |
| 546 | + | |
| 547 | + | |
| 548 | + | |
550 | 549 |
| |
551 | 550 |
| |
552 | 551 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
414 | 414 |
| |
415 | 415 |
| |
416 | 416 |
| |
| 417 | + | |
| 418 | + | |
| 419 | + | |
417 | 420 |
| |
418 | 421 |
| |
419 | 422 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 |
| |
193 | 196 |
| |
194 | 197 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
Lines changed: 64 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + |
Lines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1560 | 1560 |
| |
1561 | 1561 |
| |
1562 | 1562 |
| |
1563 |
| - | |
1564 |
| - | |
1565 |
| - | |
1566 |
| - | |
1567 |
| - | |
1568 | 1563 |
| |
1569 |
| - | |
1570 |
| - | |
| 1564 | + | |
| 1565 | + | |
1571 | 1566 |
| |
1572 | 1567 |
| |
1573 | 1568 |
| |
|
0 commit comments
Comments
(0)