From 8102d2a2c4ee3b9a30de87914a2f6fd9d7f81a9c Mon Sep 17 00:00:00 2001 From: zeaslity Date: Sun, 26 Feb 2023 11:03:38 +0800 Subject: [PATCH] [agent][executor]- bug - 8 --- .../io/wdd/agent/executor/CommandExecutor.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/agent/src/main/java/io/wdd/agent/executor/CommandExecutor.java b/agent/src/main/java/io/wdd/agent/executor/CommandExecutor.java index dd186b0..b71529e 100644 --- a/agent/src/main/java/io/wdd/agent/executor/CommandExecutor.java +++ b/agent/src/main/java/io/wdd/agent/executor/CommandExecutor.java @@ -219,15 +219,6 @@ public class CommandExecutor { .get() ); - // 对线程进行debug - commandExecLogCache.debugProcessStreams(process); - - try { - TimeUnit.SECONDS.sleep(3); - } catch (InterruptedException e) { - throw new RuntimeException(e); - } - //process.destroy(); try { @@ -246,11 +237,14 @@ public class CommandExecutor { ); // 关闭这个命令执行的inputStream + log.debug( + "关闭Process [ {} ]命令执行的inputStream", + process.info() + ); process .getInputStream() .close(); - } catch (IOException e) { throw new RuntimeException(e); }