pgsql: Revert dup2() checking in syslogger.c - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Revert dup2() checking in syslogger.c
Date
Msg-id E1W88ut-00076g-15@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: KONDO Mitsumasa
Date:
Subject: Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me
Next
From: Stephen Frost
Date:
Subject: Re: pgsql: Check dup2() results in syslogger