mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
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:
parent
c17839c255
commit
ef796e589c
@ -61,7 +61,7 @@ public class ReaperService {
|
|||||||
*/
|
*/
|
||||||
public void registerPid(String serviceId, long pid) {
|
public void registerPid(String serviceId, long pid) {
|
||||||
String[] killPidCommand = OS.<String[]>conditional()
|
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) })
|
.onUnix(() -> new String[] { "kill", "-9", String.valueOf(pid) })
|
||||||
.supply();
|
.supply();
|
||||||
registerCommand(serviceId, killPidCommand);
|
registerCommand(serviceId, killPidCommand);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user