Skip to content

Commit 0515562

Browse files
author
Vladimir Kotal
committed
cleanup unused Process
1 parent 275d251 commit 0515562

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/SSCMRepository.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ InputStream getHistoryGet(String parent, final String basename, String rev) {
174174

175175
File directory = new File(parent);
176176

177-
Process process = null;
178177
try {
179178
final File tmp = Files.createTempDirectory("opengrokSSCMtmp").toFile();
180179
String tmpName = tmp.getCanonicalPath();
@@ -233,16 +232,6 @@ public void close() throws IOException {
233232
} catch (IOException exp) {
234233
LOGGER.log(Level.SEVERE,
235234
"Failed to get file: " + exp.getClass().toString(), exp);
236-
} finally {
237-
// Clean up zombie-processes...
238-
if (process != null) {
239-
try {
240-
process.exitValue();
241-
} catch (IllegalThreadStateException exp) {
242-
// the process is still running??? just kill it..
243-
process.destroy();
244-
}
245-
}
246235
}
247236

248237
return ret;

0 commit comments

Comments
 (0)