pgsql: Check dup2() results in syslogger

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check dup2() results in syslogger
Date: 2014-01-26 21:41:12
Message-ID: E1W7XS4-0001Jv-CO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-01-26 22:04:59 pgsql: Provide for client-only installs with MSVC.
Previous Message Magnus Hagander 2014-01-26 20:17:44 pgsql: Move the options column of \db+ before the description