Fix typo in Taskkill in reaper (#61076)

The reaper is used only when spawned processes by the build like
testclusters or vagrant are left behind in a failed build. When this
occurs on Windows, the Taskkill command is used. However, there was a
typo in the command name. Since the reaper is for edgecases and mostly
protection for local builds (CI uses immutable hosts), this has been
broken since its inception.

closes #60503
This commit is contained in:
Ryan Ernst 2020-08-13 10:20:18 -07:00 committed by Ryan Ernst
parent c17839c255
commit ef796e589c
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ReaperService {
*/
public void registerPid(String serviceId, long pid) {
String[] killPidCommand = OS.<String[]>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);