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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]