pgsql: Check dup2() results in syslogger - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Check dup2() results in syslogger
Date
Msg-id E1W7XS4-0001Jv-CO@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Check dup2() results in syslogger
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Move the options column of \db+ before the description
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Provide for client-only installs with MSVC.