From: Tom Lane <tgl@sss.pgh.pa.us>
To: reinhard@m4x.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7559: syslogger doesn't close stdout and stderr
Date: Wed, 19 Sep 2012 12:39:12 -0400
Message-ID: <29557.1348072752@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TEMgj-0005PY-Hy@wrigleys.postgresql.org>
References: <E1TEMgj-0005PY-Hy@wrigleys.postgresql.org>
reinhard@m4x.de writes:
> When initially starting up, syslogger keeps stdout and stderr open instead
> of closing them and reopening them from /dev/null for proper daemonisation.
How exactly could it "close and reopen" them without losing their
identity? And what makes /dev/null necessarily the right substitute?
I don't think we should change this within Postgres. We removed logic
associated with daemonization altogether in 9.2 --- it's the
responsibility of the calling script to close any files it doesn't want
left open.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, reinhard@m4x.de
Subject: Re: BUG #7559: syslogger doesn't close stdout and stderr
In-Reply-To: <29557.1348072752@sss.pgh.pa.us>
References: <E1TEMgj-0005PY-Hy@wrigleys.postgresql.org> <29557.1348072752@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox