pgsql: Revert dup2() checking in syslogger.c

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Revert dup2() checking in syslogger.c
Date: 2014-01-28 13:41:27
Message-ID: E1W88ut-00076g-15@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revert dup2() checking in syslogger.c

Per the expanded comment-

As we're just trying to reset these to go to DEVNULL, there's not
much point in checking for failure from the close/dup2 calls here,
if they fail then presumably the file descriptors are closed and
any writes will go into the bitbucket anyway.

Pointed out by Tom.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aef61bf433a9e9b6e2d98b0fdcce8562c3ad526f

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

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2014-01-28 13:45:39 Re: pgsql: Check dup2() results in syslogger
Previous Message KONDO Mitsumasa 2014-01-28 06:38:12 Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me