Author: cwiklik Date: Thu Oct 24 14:56:40 2013 New Revision: 1535396 URL: http://svn.apache.org/r1535396 Log: UIMA-3367 modified to check if process was killed with -15
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java?rev=1535396&r1=1535395&r2=1535396&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java Thu Oct 24 14:56:40 2013 @@ -381,7 +381,7 @@ public class ManagedProcess implements P // state to Stopped (reason != null && initError ) ) { getDuccProcess().setProcessState(ProcessState.Stopped); - if ( !initError && exitcode - 128 == 9 ) { // killed with -9? + if ( !initError && ( exitcode - 128 == 9 || exitcode - 128 == 15 ) ) { // killed with -9? getDuccProcess().setReasonForStoppingProcess(ReasonForStoppingProcess.KilledByDucc.toString()); } } else { @@ -395,7 +395,7 @@ public class ManagedProcess implements P if ( isAP ) { // Agent killed the AP process pstate = ProcessState.Stopped; - if ( exitcode - 128 == 9 ) { // kill -9? + if ( exitcode - 128 == 9 || exitcode - 128 == 15 ) { // kill -9 or -15? getDuccProcess().setReasonForStoppingProcess(ReasonForStoppingProcess.KilledByDucc.toString()); } } else { @@ -429,7 +429,7 @@ public class ManagedProcess implements P } else if ( getDuccProcess().getProcessState().equals(ProcessState.Stopping)) { pstate = ProcessState.Stopped; } else { - if ( exitcode - 128 == 9) { // check if the process was killed with -9 + if ( exitcode - 128 == 9 || exitcode - 128 == 15 ) { // check if the process was killed with -9 addReasonForStopping(getDuccProcess(), ReasonForStoppingProcess.KilledByDucc.toString()); } else {