postgresql/src/common
Tom Lane 0140dec180 Replace use of sys_siglist[] with strsignal().
This commit back-patches the v12-era commits a73d08319, cc92cca43,
and 7570df0f3 into supported pre-v12 branches.  The net effect is to
eliminate 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 our
code can survive without sys_siglist[], it then fails to print any
description of the signal that killed a child process, which is a
non-negligible loss of friendliness.  We can expect that people will
be wanting to build the back branches on platforms that include this
change, so we need to do something.

Since strsignal(3) has existed for quite a long time, and we've not
had any trouble with these patches so far in v12, it seems safe to
back-patch into older branches.

Discussion: https://postgr.es/m/3179114.1594853308@sss.pgh.pa.us
2020-07-15 22:05:12 -04:00
..
unicode Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
base64.c Fix comments in SCRAM-SHA-256 patch. 2017-03-07 15:24:27 +02:00
config_info.c Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
controldata_utils.c Adjust error message 2018-08-06 10:53:51 +02:00
exec.c Enlarge find_other_exec's meager fgets buffer 2018-04-19 10:45:15 -03:00
fe_memutils.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
file_utils.c Tolerate EINVAL when calling fsync() on a directory. 2019-02-24 23:52:20 +13:00
ip.c Clean up assorted misuses of snprintf()'s result value. 2018-08-15 16:29:32 -04:00
keywords.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-07-09 17:23:31 -04:00
md5.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pg_lzcompress.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pgfnames.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
psprintf.c Fix portability failure introduced in commits d2b0b60e7 et al. 2018-12-26 15:30:27 -05:00
relpath.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
restricted_token.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
rmtree.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
saslprep.c Minor cleanup/future-proofing for pg_saslprep(). 2018-09-08 18:20:36 -04:00
scram-common.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
sha2.c Update copyright in recently added files 2017-07-26 18:17:18 -04:00
sha2_openssl.c Update copyright in recently added files 2017-07-26 18:17:18 -04:00
string.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
unicode_norm.c Fix typo 2020-02-19 21:09:30 +01:00
username.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
wait_error.c Replace use of sys_siglist[] with strsignal(). 2020-07-15 22:05:12 -04:00