The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(file-ops): reuse _kill_process_group_posix in the native rg runner
kshitijk4poor2d7799275046
diff --git a/tools/file_operations_search.py b/tools/file_operations_search.pyindex f111a316a06..c97fe6ace17 100644--- a/tools/file_operations_search.py+++ b/tools/file_operations_search.py@@ -4,12 +4,10 @@(no I/O)."""-import contextlibimport osimport posixpathimport reimport shlex-import signalimport subprocessimport sysimport threading@@ -335,7 +333,7 @@ class SearchMixin:``merge_stderr`` mirrors the shell path's stderr handling: merged for contentsearch (diagnostics feed the error message), discarded (``2>/dev/null``) forfile lists and probes."""- from tools.environments.local import _make_run_env+ from tools.environments.local import _kill_process_group_posix, _make_run_envcwd = getattr(self.env, "cwd", None) or self.cwdargs = shlex.split(" ".join(argv))try:@@ -373,8 +371,7 @@ class SearchMixin:exit_code = 124breakif proc.poll() is None:- with contextlib.suppress(ProcessLookupError, PermissionError):- os.killpg(proc.pid, signal.SIGKILL)+ _kill_process_group_posix(proc) # native lane is POSIX-only (gate above)proc.wait()drainer.join()proc.stdout.close()