Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(ecc2): resolve kill_process duplicate definition on Windows (#2195)

mohameddsh3ban0ce14a423c84
diff --git a/ecc2/src/session/manager.rs b/ecc2/src/session/manager.rs
index 8de49c8ef..515235760 100644
--- a/ecc2/src/session/manager.rs
+++ b/ecc2/src/session/manager.rs
@@ -3634,24 +3634,6 @@ fn send_signal(pid: u32, signal: i32) -> Result<()> {
Err(error).with_context(|| format!("Failed to kill process {pid}"))
}
-#[cfg(not(unix))]
-async fn kill_process(pid: u32) -> Result<()> {
- let status = Command::new("taskkill")
- .args(["/F", "/PID", &pid.to_string()])
- .stdin(Stdio::null())
- .stdout(Stdio::null())
- .stderr(Stdio::null())
- .status()
- .await
- .with_context(|| format!("Failed to invoke taskkill for process {pid}"))?;
-
- if status.success() {
- Ok(())
- } else {
- anyhow::bail!("taskkill failed for process {pid}");
- }
-}
-
pub struct SessionStatus {
harness: SessionHarnessInfo,
profile: Option<SessionAgentProfile>,