Skip to content

Commit

Permalink
Remove sudo from killing pids (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
charankamarapu authored Jan 11, 2024
1 parent baafc13 commit 2f5d2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/src/main/java/io.keploy.cli/KeployCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2f5d2ce

Please sign in to comment.