Changeset 31706 for main/trunk/gli/src
- Timestamp:
- 2017-05-25T19:38:26+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/util/SafeProcess.java
r31704 r31706 803 803 } 804 804 return true; 805 } else if( !Utility.isMac() && exitValue == 1) {805 } else if(exitValue == 1 && proc.getStdOutput().trim().equals("") && proc.getStdError().trim().equals("")) { 806 806 // https://stackoverflow.com/questions/28332888/return-value-of-kill 807 807 // "kill returns an exit code of 0 (true) if the process still existed it and was killed. … … 810 810 // the process and its subprocesses (don't need to call this method at all to terminate the processes: the processes 811 811 // aren't running when we get to this method) 812 log("@@@ Sending termination signal returned exit value 1. On linux this happens when the process has already been terminated");812 log("@@@ Sending termination signal returned exit value 1. On unix this happens when the process has already been terminated."); 813 813 return true; 814 814 } else { 815 log("@@@ Not able to successfully terminate process , got exitvalue" + exitValue);815 log("@@@ Not able to successfully terminate process. Got exitvalue: " + exitValue); 816 816 log("@@@ Got output: |" + proc.getStdOutput() + "|"); 817 817 log("@@@ Got err output: |" + proc.getStdError() + "|");
Note:
See TracChangeset
for help on using the changeset viewer.