postgresql/src/common
Tom Lane 9e043d93c8 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:13 -04:00
..
config_info.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
controldata_utils.c Adjust error message 2018-08-06 10:54:19 +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 for 2016 2016-01-02 13:33:40 -05:00
keywords.c Move keywords.c/kwlookup.c into src/common/. 2016-03-23 20:22:08 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-07-09 17:23:31 -04:00
pg_lzcompress.c Fix typos in comments 2016-02-01 11:43:48 +01:00
pgfnames.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
psprintf.c Fix portability failure introduced in commits d2b0b60e7 et al. 2018-12-26 15:30:30 -05:00
relpath.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
restricted_token.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
rmtree.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
string.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
username.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
wait_error.c Replace use of sys_siglist[] with strsignal(). 2020-07-15 22:05:13 -04:00