Re: Why aren't we using strsignal(3) ? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Why aren't we using strsignal(3) ?
Date
Msg-id 20181216200459.yd6dmgaz4m57s6dv@alvherre.pgsql
Whole thread Raw
In response to Why aren't we using strsignal(3) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Why aren't we using strsignal(3) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: David Rowley
Date:
Subject: Re: Should new partitions inherit their tablespace from their parent?
Next
From: Andres Freund
Date:
Subject: Re: reorderbuffer: memory overconsumption with medium-size subxacts