From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Check dup2() results in syslogger |
Date: | 2014-01-27 17:17:05 |
Message-ID: | 20140127171705.GF31026@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
* Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> You shouldn't really raise that argument against the guy who made the
> original commit in question ;-).
Figures. :) Not sure how I missed that.
[...]
Right, I had followed that.
> Now ideally, the way we do that is to reconnect its stderr to /dev/null,
> but if either the open(DEVNULL) or the dup2() calls were to fail, it will
> presumably still work to leave the file descriptors just-plain-closed.
> If the syslogger process then attempts to write on stderr, libc's internal
> write() calls will fail, but so what? We wanted the output to go to the
> bit bucket anyhow.
Ok, I see your point that it wouldn't much matter if we tried to
complain at this point about the dup2() calls failing.
> In short, this patch was ill considered. Please revert. If we need
> to silence a Coverity complaint, perhaps a cast-to-void will do?
Sure, I'll adjust it accordingly.
Thanks,
Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-01-27 17:27:49 | Re: pgsql: Check dup2() results in syslogger |
Previous Message | Tom Lane | 2014-01-27 16:49:54 | Re: pgsql: Check dup2() results in syslogger |