Skip to content

fix: kill concore nodes on Windows without wmic - #601

Merged
pradeeban merged 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/concorekill-without-wmic
Oct 6, 2026
Merged

pradeeban merged 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/concorekill-without-wmic

Conversation

@bhuvan-somisetty

Copy link
Copy Markdown

Fixes #600

The generated concorekill.bat now checks each PID with Get-CimInstance Win32_Process instead of wmic, in both concore.py and concore.java. I also switched find to findstr so it can't pick up GNU find when the script is run from Git Bash.

Added a Windows-only test that starts a real process, runs the generated script, and checks that the process is killed and both files are removed. It fails on dev and passes with this change. Full suite and Java tests pass.

wmic is gone on recent Windows 11, and the generated concorekill.bat
aborted at that line so nothing got killed. Look up the command line
with Get-CimInstance instead and match it with findstr.
@bhuvan-somisetty

bhuvan-somisetty commented Oct 6, 2026 •

Copy link
Copy Markdown
Author

@pradeeban small fix for #600, concorekill.bat now works without wmic. PTAL when you get a chance.

@pradeeban
pradeeban merged commit 8e0913e into ControlCore-Project:dev Oct 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants