[PATCH] scripts: run-clang-tools: import os for broken pipe handling

From: omer zalman

Date: Mon Sep 28 2026 - 19:48:29 EST


The BrokenPipeError handler calls os.open() and os.dup2(), but the
module never imports os. A broken output pipe therefore raises
NameError while handling the original error. Import os so the
handler can redirect stdout and exit as intended.

Signed-off-by: Omer Zalman <omerzalman42@xxxxxxxxx>

The exact git-format-patch file is attached because Gmail's web
composer removes tabs from inline diffs.

Attachment: 05-run-clang-tools-broken-pipe.patch
Description: Binary data