Changeset 31716 for main/trunk/greenstone3
- Timestamp:
- 2017-05-30T21:23:20+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/util/SafeProcess.java
r31712 r31716 445 445 // 2. basic waitFor the process to finish 446 446 this.exitValue = process.waitFor(); 447 447 448 // 3. if we managed to get here, the process naturally terminated (wasn't interrupted): 448 449 this.forciblyTerminateProcess = false; 449 450 } catch(IOException ioe) { … … 790 791 // Kill signals, their names and numerical equivalents: http://www.faqs.org/qa/qa-831.html 791 792 // https://stackoverflow.com/questions/8533377/why-child-process-still-alive-after-parent-process-was-killed-in-linux 792 // Didn't work forwhen build scripts run from GLI: kill -TERM -pid793 // but the other suggestion did work: pkill -TERM -P pid did work793 // Works on Linux but not Mac when build scripts run from GLI: kill -TERM -pid 794 // Works on Macs but not Linux: pkill -TERM -P pid 794 795 // More reading: 795 796 // https://superuser.com/questions/343031/sigterm-with-a-keyboard-shortcut
Note:
See TracChangeset
for help on using the changeset viewer.