Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix: bound the SIGKILL escalation wait to prevent indefinite hang

jesus alberto cornelio891797248d1d
diff --git a/skills/last30days/scripts/lib/subproc.py b/skills/last30days/scripts/lib/subproc.py
index 365f0e6f..24fc4215 100644
--- a/skills/last30days/scripts/lib/subproc.py
+++ b/skills/last30days/scripts/lib/subproc.py
@@ -91,7 +91,10 @@ def run_with_timeout(
proc.wait(timeout=5)
except subprocess.TimeoutExpired:
proc.kill()
- proc.wait()
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ pass # process unkillable (e.g. D-state); leave as zombie
raise SubprocTimeout(f"Command {cmd[0]} timed out after {timeout}s")
return SubprocResult(