MCPcopy Create free account
hub / github.com/SwiftyPop/TimerResBenchmark / kill_process

Function kill_process

src/main.rs:364–373  ·  view source on GitHub ↗
(process_name: &str)

Source from the content-addressed store, hash-verified

362}
363
364fn kill_process(process_name: &str) -> io::Result<()> {
365 Command::new("taskkill")
366 .args(&["/IM", process_name, "/F"])
367 .output()
368 .map(|_| ())
369 .map_err(|e| {
370 eprintln!("Failed to kill process {}: {}", process_name, e);
371 e
372 })
373}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected