Received: by taz.hyperreal.com (8.8.4/V2.0) id UAA14071; Tue, 4 Feb 1997 20:50:04 -0800 (PST) Received: by taz.hyperreal.com (8.8.4/V2.0) id UAA14060; Tue, 4 Feb 1997 20:50:01 -0800 (PST) Date: Tue, 4 Feb 1997 20:50:01 -0800 (PST) Message-Id: <199702050450.UAA14060@taz.hyperreal.com> From: James Burton Reply-To: James Burton To: gnats-admin@hyperreal.com Cc: brian@hyperreal.com, apache-bugdb@apache.org Subject: general/152: If start twice, overwrites the PID file In-Reply-To: Your message of Tue, 4 Feb 1997 20:42:08 -0800 (PST) <199702050442.UAA13648@taz.hyperreal.com> Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 152 >Category: general >Synopsis: If start twice, overwrites the PID file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: gnats-admin (GNATS administrator) >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Tue Feb 4 20:50:01 1997 >Originator: jamesb@aone.com.au >Organization: apache >Release: 1.1.1 >Environment: Solaris 2.5, APACHE v1.1.1, not really related to this >Description: If you start apache twice the pid file is overwritten even though the 2nd invocation fails and the 1st is uneffected. So if later you want to shutdown the original invocation you have to do it by hand >How-To-Repeat: Just start apache as per normal, then start it again >Fix: Yep, move the call to log_pid() after the attempt to bind() to the socket so that when the bind() call fails log_pid() is not called. Thank >Audit-Trail: >Unformatted: