fix: Ollama-Adapter räumt die Prozessgruppe auch bei Zeitlimit und frühem Ende auf (#1165); Version 0.1.15-rc21
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg6k5Hxh8GpVW7od4Di
This commit is contained in:
@ -39,6 +39,9 @@ if mode == "crash":
|
||||
print("fake-ollama: error: could not bind", file=sys.stderr, flush=True)
|
||||
sys.exit(4)
|
||||
if mode == "hang":
|
||||
# Wie ein Server, der beim Start schon einen Hilfsprozess in seiner Gruppe hat (Runner).
|
||||
runner = subprocess.Popen(["sleep", "15"])
|
||||
print(f"fake-ollama: runner {runner.pid}", flush=True)
|
||||
signal.signal(signal.SIGTERM, signal.SIG_DFL)
|
||||
while True:
|
||||
time.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user