From 2f5d2cec9707b8d5b33cc127f7920c40eefd63c1 Mon Sep 17 00:00:00 2001 From: Charan Kamarapu Date: Thu, 11 Jan 2024 14:19:39 +0530 Subject: [PATCH] Remove sudo from killing pids (#162) --- v2/src/main/java/io.keploy.cli/KeployCLI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/src/main/java/io.keploy.cli/KeployCLI.java b/v2/src/main/java/io.keploy.cli/KeployCLI.java index aef7301a..2cc0550f 100644 --- a/v2/src/main/java/io.keploy.cli/KeployCLI.java +++ b/v2/src/main/java/io.keploy.cli/KeployCLI.java @@ -388,7 +388,7 @@ public static void killProcessesAndTheirChildren(int parentPID) { for (int childPID : pids) { if (childPID != getCurrentPid()) { try { - new ProcessBuilder("sudo", "kill", "-15", String.valueOf(childPID)).start(); + new ProcessBuilder("kill", "-15", String.valueOf(childPID)).start(); logger.debug("Killed child process " + childPID); } catch (Exception e) { e.printStackTrace();