[jboss-cvs] JBossAS SVN: r101724 - trunk/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 2 12:05:21 EST 2010


Author: mladen.turk at jboss.com
Date: 2010-03-02 12:05:20 -0500 (Tue, 02 Mar 2010)
New Revision: 101724

Modified:
   trunk/main/src/bin/run.sh
Log:
Always do another wait to distinguish between VM exit and process kill

Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh	2010-03-02 16:59:52 UTC (rev 101723)
+++ trunk/main/src/bin/run.sh	2010-03-02 17:05:20 UTC (rev 101724)
@@ -258,13 +258,13 @@
       done
       if [ "$WAIT_STATUS" -lt 127 ]; then
          JBOSS_STATUS=$WAIT_STATUS
-         if [ "$JBOSS_STATUS" = 0 ]; then
-            # Some wait implementations return 0 for non existing process
-            wait $JBOSS_PID 2>/dev/null
-         fi
       else
          JBOSS_STATUS=0
       fi
+      if [ "$JBOSS_STATUS" -ne 10 ]; then
+            # Wait for a complete shudown
+            wait $JBOSS_PID 2>/dev/null
+      fi
    fi
    # If restart doesn't work, check you are running JBossAS 4.0.4+
    #    http://jira.jboss.com/jira/browse/JBAS-2483




More information about the jboss-cvs-commits mailing list