Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

test: the zombie premise of owned_alive_sees_a_launched_server_exit is Linux-only

Gabriele Lozuponed4a841f7a530
diff --git a/crates/qls-core/src/process.rs b/crates/qls-core/src/process.rs
index ab8125a..0b767ab 100644
--- a/crates/qls-core/src/process.rs
+++ b/crates/qls-core/src/process.rs
@@ -1053,7 +1053,11 @@ CPU Apple M2 Pro
let pid = child.id();
child.kill().unwrap();
std::thread::sleep(Duration::from_millis(300));
- assert!(process_alive(pid), "the dead, unreaped server still looks alive by pid (zombie)");
+ // The bug itself: on Linux the zombie keeps its name under its pid. macOS reports no name
+ // for a zombie, so there it never looked alive; the checks below hold on both.
+ if cfg!(target_os = "linux") {
+ assert!(process_alive(pid), "the dead, unreaped server still looks alive by pid (zombie)");
+ }
let m = ServerManager::new(dir.clone());
m.set_state(|g| {
g.owned = true;