https://issues.apache.org/bugzilla/show_bug.cgi?id=47699

           Summary: CATALINA_PID can be over-written by failed start
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:Integration
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Mark Thomas <[email protected]> 2009-08-17 13:59:59 BST ---
If CATALINA_PID is defined and start is called twice in succession CATALINA_PID
will be over-written by second start (that will fail as the ports are in use).
This will leave the PID file referencing the wrong PID.

This could be fixed be preventing a start if the PID file already exists. This
requires adding code to remove the PID file on successful stop. Since the stop
command returns before the process exits, some form of timeout is necessary.

Patch to follow shortly.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to