Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEbEO-0003ew-3p for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 07:31:28 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEbEL-0007eU-Fe for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 07:31:26 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 94A94283E8; Thu, 20 Sep 2012 00:31:24 -0700 (PDT) Received: from zcs-prod-mta-3.vmware.com (zcs-prod-mta-3.vmware.com [10.113.163.65]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 9096EB0467; Thu, 20 Sep 2012 00:31:24 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-mta-3.vmware.com (Postfix) with ESMTP id 51B0FE3321; Thu, 20 Sep 2012 00:31:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at zcs-prod-mta-3.vmware.com Received: from zcs-prod-mta-3.vmware.com ([127.0.0.1]) by localhost (zcs-prod-mta-3.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rSVBSMDDtS3F; Thu, 20 Sep 2012 00:31:15 -0700 (PDT) Received: from [10.113.227.81] (unknown [10.113.160.14]) by zcs-prod-mta-3.vmware.com (Postfix) with ESMTPSA id 45641E3318; Thu, 20 Sep 2012 00:31:14 -0700 (PDT) Message-ID: <505AC648.7050400@vmware.com> Date: Thu, 20 Sep 2012 10:31:20 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: Reinhard Max CC: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #7559: syslogger doesn't close stdout and stderr References: <29557.1348072752@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.4 (-------) X-Archive-Number: 201209/225 X-Sequence-Number: 34219 On 20.09.2012 00:05, Reinhard Max wrote: > On Wed, 19 Sep 2012 at 12:39, Tom Lane wrote: >> reinhard@m4x.de writes: >> And what makes /dev/null necessarily the right substitute? > > Because it is what virtually all deamons have been doing for the last > 3..4 decades? > >> I don't think we should change this within Postgres. We removed logic >> associated with daemonization altogether in 9.2 > > Huh - why that? I believe Tom is referring to the removal of silent_mode in 9.2, see http://archives.postgresql.org/pgsql-general/2011-06/msg00796.php and http://archives.postgresql.org/pgsql-hackers/2011-06/msg02156.php. "We removed logic associated with daemonization" meant that the logic was removed from postmaster, because the preferred way to do it is by calling "pg_ctl start". pg_ctl redirects to /dev/null as you'd expect. - Heikki