Skip to content

Commit

Permalink
Fixes command args
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Vasquez <[email protected]>
  • Loading branch information
rafvasq committed Nov 1, 2023
1 parent 8bec96f commit 4379300
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ public static int getPID(Process process) throws Exception {

public static int killProcess(Process process) throws Exception {
String pid = Integer.toString(getPID(process));
String command = "kill -9";
return Runtime.getRuntime().exec(new String[] {command, pid}).waitFor();
return Runtime.getRuntime().exec(new String[] {"kill", "-9", pid}).waitFor();
}
}

0 comments on commit 4379300

Please sign in to comment.