[agent][executor]- bug - 8
This commit is contained in:
@@ -219,15 +219,6 @@ public class CommandExecutor {
|
|||||||
.get()
|
.get()
|
||||||
);
|
);
|
||||||
|
|
||||||
// 对线程进行debug
|
|
||||||
commandExecLogCache.debugProcessStreams(process);
|
|
||||||
|
|
||||||
try {
|
|
||||||
TimeUnit.SECONDS.sleep(3);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
//process.destroy();
|
//process.destroy();
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@@ -246,11 +237,14 @@ public class CommandExecutor {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 关闭这个命令执行的inputStream
|
// 关闭这个命令执行的inputStream
|
||||||
|
log.debug(
|
||||||
|
"关闭Process [ {} ]命令执行的inputStream",
|
||||||
|
process.info()
|
||||||
|
);
|
||||||
process
|
process
|
||||||
.getInputStream()
|
.getInputStream()
|
||||||
.close();
|
.close();
|
||||||
|
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user