Check dup2() results in syslogger

Stephen Frost <sfrost@snowman.net>

Commit: 790eaa699e4a9626d8a610ec5844e1fd70d73b4e
Author: Stephen Frost <sfrost@snowman.net>
Date: 2014-01-26T21:26:18Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/backend/postmaster/syslogger.c modified +8 −2