You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/02/22 14:58:41 UTC

DO NOT REPLY [Bug 48793] New: catalina.sh: "stop" errors on HP-UX

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

           Summary: catalina.sh: "stop" errors on HP-UX
           Product: Tomcat 6
           Version: 6.0.24
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:Packaging
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: tom.gl@free.fr


Created an attachment (id=25035)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25035)
Fix for some "[ $? -eq 1 ]" tests

Hi,

In SVN commit 810611, the following shell pattern have used a few times in
"catalina.sh":

    kill -0 $pid
    if [ $? -eq 1 ]; then
       ... OK, the process is dead ...
    fi

On HP-UX (11.11 here), this does not work as expected, because kill
("/usr/bin/kill" actually, it's not shell a built-in) returns 2 when the PID
doesn't exist, and not 1 as assumed above.
It would be better to rewrite these tests like this :

   ...
   if [ $? -gt 0 ]; then 
      ...

A patch follows (made against 6.0.24).

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48793] catalina.sh: "stop" errors on HP-UX

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48793

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-03-10 16:48:54 UTC ---
Thanks for the patch. It has been applied to trunk and proposed for 6.0.x

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48793] catalina.sh: "stop" errors on HP-UX

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48793

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-05-14 15:48:44 EDT ---
Thanks again for the patch. The patch has been applied to 6.0.x and will be
included in 6.0.27 onwards.

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org