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(cli): keep child cleanup working on Windows

Trevin Chowb2a762aa2476
diff --git a/skills/last30days/scripts/last30days.py b/skills/last30days/scripts/last30days.py
index 29387863..dcc3c053 100644
--- a/skills/last30days/scripts/last30days.py
+++ b/skills/last30days/scripts/last30days.py
@@ -62,7 +62,10 @@ def _cleanup_children() -> None:
pids = list(_child_pids)
for pid in pids:
try:
- os.killpg(os.getpgid(pid), signal.SIGTERM)
+ if hasattr(os, "killpg"):
+ os.killpg(os.getpgid(pid), signal.SIGTERM)
+ else:
+ os.kill(pid, signal.SIGTERM)
except (ProcessLookupError, PermissionError, OSError):
continue