postgresql/src/common
Tom Lane d61dcccaf9 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
..
exec.c Enlarge find_other_exec's meager fgets buffer 2018-04-19 10:45:15 -03:00
fe_memutils.c Add palloc_extended for frontend and backend. 2015-04-03 17:36:12 +09:00
Makefile Reorganize our CRC source files again. 2015-04-14 17:03:42 +03:00
pg_lzcompress.c Move pg_lzcompress.c to src/common. 2015-02-09 15:15:24 +09:00
pgfnames.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
psprintf.c Fix portability failure introduced in commits d2b0b60e7 et al. 2018-12-26 15:30:35 -05:00
relpath.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
restricted_token.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
rmtree.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
string.c Add pg_string_endswith as the start of a string helper library in src/common. 2015-01-03 20:54:12 +01:00
username.c Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:44 -05:00
wait_error.c Replace use of sys_siglist[] with strsignal(). 2020-07-15 22:05:13 -04:00