Re: Tighten error control for OpenTransientFile/CloseTransientFile

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Tighten error control for OpenTransientFile/CloseTransientFile
Дата
Msg-id 20190308010005.GA28241@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Tighten error control for OpenTransientFile/CloseTransientFile  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Tighten error control for OpenTransientFile/CloseTransientFile
Список pgsql-hackers
On 2019-Mar-07, Michael Paquier wrote:

>  #else
> -    close(fd);
> +    if (close(fd))
> +    {
> +        fprintf(stderr, _("%s: could not close file \"%s\": %s"),
> +                progname, ControlFilePath, strerror(errno));
> +        exit(EXIT_FAILURE);
> +    }
>  #endif

I think this one needs a terminating \n.

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


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