BUG #7559: syslogger doesn't close stdout and stderr - Mailing list pgsql-bugs

From reinhard@m4x.de
Subject BUG #7559: syslogger doesn't close stdout and stderr
Date
Msg-id E1TEMgj-0005PY-Hy@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #7559: syslogger doesn't close stdout and stderr  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      7559
Logged by:          Reinhard Max
Email address:      reinhard@m4x.de
PostgreSQL version: 9.1.5
Operating system:   openSUSE
Description:        =


When initially starting up, syslogger keeps stdout and stderr open instead
of closing them and reopening them from /dev/null for proper daemonisation.
This causes the process that triggers PostgreSQL to hang if it uses a pipe
to synchronize itself with the backgrounding of the server.

I've sent a proposed fix to Peter Eisentraut.

pgsql-bugs by date:

Previous
From: zimnyx@gmail.com
Date:
Subject: BUG #7557: Transaction sees outdated grants.
Next
From: Tom Lane
Date:
Subject: Re: BUG #7559: syslogger doesn't close stdout and stderr