Re: Why aren't we using strsignal(3) ?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Why aren't we using strsignal(3) ?
Дата
Msg-id 20181216200459.yd6dmgaz4m57s6dv@alvherre.pgsql
обсуждение исходный текст
Ответ на Why aren't we using strsignal(3) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Why aren't we using strsignal(3) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2018-Dec-16, Tom Lane wrote:

> I propose to replace all these places with code like
> 
>         snprintf(str, sizeof(str),
>                  _("child process was terminated by signal %d: %s"),
>                  WTERMSIG(exitstatus), pg_strsignal(WTERMSIG(exitstatus)));
> 
> where pg_strsignal is a trivial wrapper around strsignal() if that
> exists, else it uses sys_siglist[] if that exists, else it just
> returns "unrecognized signal".

LGTM.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Should new partitions inherit their tablespace from their parent?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: reorderbuffer: memory overconsumption with medium-size subxacts