Check dup2() results in syslogger
authorStephen Frost <sfrost@snowman.net>
Sun, 26 Jan 2014 21:26:18 +0000 (16:26 -0500)
committerStephen Frost <sfrost@snowman.net>
Sun, 26 Jan 2014 21:26:18 +0000 (16:26 -0500)
commit790eaa699e4a9626d8a610ec5844e1fd70d73b4e
treee2fb736de665a371d83b02fa3b53b78cbbeb1fa2
parentf2795f8b5393005ab2d2438fadce116b032bea6e
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.
src/backend/postmaster/syslogger.c