diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java b/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java index 5970c4018a4..c4c171ac486 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java @@ -61,7 +61,7 @@ public class ReaperService { */ public void registerPid(String serviceId, long pid) { String[] killPidCommand = OS.conditional() - .onWindows(() -> new String[] { "Taskill", "/F", "/PID", String.valueOf(pid) }) + .onWindows(() -> new String[] { "Taskkill", "/F", "/PID", String.valueOf(pid) }) .onUnix(() -> new String[] { "kill", "-9", String.valueOf(pid) }) .supply(); registerCommand(serviceId, killPidCommand);