Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

procs: init adopting an orphan does not make init its starter (found on Linux: the orphan check found nothing)

Niko1221e3de5044b2cc
diff --git a/strata_control/procs.py b/strata_control/procs.py
index 8084b8d07..cfa167ae9 100644
--- a/strata_control/procs.py
+++ b/strata_control/procs.py
@@ -328,7 +328,7 @@ def orphans_of(engine_exe: str) -> list[Ident]:
return []
mine = {os.getpid()}
try:
- mine.update(q.pid for q in psutil.Process().parents())
+ mine.update(q.pid for q in psutil.Process().parents() if q.pid != 1) # pid 1 adopts orphans: it is not a starter
except psutil.Error:
pass
found = []
@@ -341,7 +341,7 @@ def orphans_of(engine_exe: str) -> list[Ident]:
continue
parent = p.info.get("ppid")
if parent in mine:
- continue # started by this server (or by one above it: a container's pid 1)
+ continue # started by this server (or by a process above it)
if parent and parent != 1:
try:
q = psutil.Process(parent)