mirror of
https://github.com/morluto/rea.git
synced 2026-10-23 14:22:30 -05:00
Bind the owned demo helper to REA's private stdin stream and unwind child cleanup on EOF during startup or analysis. Verify graceful and SIGKILL owner exit through real CLI/MCP workflows and preserve unrelated processes. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
17 lines
551 B
Python
17 lines
551 B
Python
#!/usr/bin/env python3
|
|
"""Inspect the real Node launcher stdio with the production lifetime parser."""
|
|
|
|
import importlib.util
|
|
import json
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
spec = importlib.util.spec_from_file_location(
|
|
"hopper_demo_x11", Path(__file__).resolve().parents[2] / "scripts/hopper-demo-x11.py"
|
|
)
|
|
assert spec is not None and spec.loader is not None
|
|
helper = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(helper)
|
|
assert "--owner-stdin" in sys.argv
|
|
print(json.dumps({"owner_alive": helper.OwnerLifetime(True).alive()}))
|