pgsql: Check dup2() results in syslogger

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Check dup2() results in syslogger
Дата
Msg-id E1W7XS4-0001Jv-CO@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Check dup2() results in syslogger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Check dup2() results in syslogger

Consistently check the dup2() call results throughout syslogger.c.
It's pretty unlikely that they'll error out, but if they do,
ereport(FATAL) instead of blissfully continuing on.

Spotted by the Coverity scanner.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/790eaa699e4a9626d8a610ec5844e1fd70d73b4e

Modified Files
--------------
src/backend/postmaster/syslogger.c |   10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Move the options column of \db+ before the description
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Provide for client-only installs with MSVC.