Re: pg_check_dir comments and implementation mismatch

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_check_dir comments and implementation mismatch
Дата
Msg-id CAB7nPqSG4WuDH9ghejBO3hn4N=RHWF=WGpWYnnE=7emdrh+HXA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_check_dir comments and implementation mismatch  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_check_dir comments and implementation mismatch  (Marco Nenciarini <marco.nenciarini@2ndquadrant.it>)
Список pgsql-hackers
On Fri, Jan 30, 2015 at 2:49 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> There is at least one other bug in that function now that I look at it:
> in event of a readdir() failure, it neglects to execute closedir().
> Perhaps not too significant since all existing callers will just exit()
> anyway after a failure, but still ...
I would imagine that code scanners like coverity or similar would not
be happy about that. ISTM that it is better to closedir()
appropriately in all the code paths.
-- 
Michael



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Possible typo in create_policy.sgml
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Possible typo in create_policy.sgml