summaryrefslogtreecommitdiff
path: root/Omni/Cloud/Networking.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-15 09:15:01 -0500
committerBen Sima <ben@bsima.me>2025-11-15 09:15:01 -0500
commit027ff609365dd0775823b7cb45b8d2d06ee3a35d (patch)
tree4780f4273a52ed9cd71b5a7af637767dfef28a19 /Omni/Cloud/Networking.nix
parente8ff5ae65312229c67a6deb9235ce935709ae173 (diff)
fix: handle stdin EOF in terminal detection and subprocess spawning
ANSI.getTerminalSize queries the terminal by writing escape codes and reading the response from stdin. When stdin is unavailable or at EOF (common in non-interactive contexts), this causes "hWaitForInput: end of file" errors. Additionally, Conduit.streamingProcess returns a stdin handle that was never being closed, which could cause child processes to block waiting for input. Fixes: - Catch IOException in detectTerminal when getTerminalSize fails - Close subprocess stdin handle immediately after spawn - Fallback to default terminal size (80x24) when detection fails This unblocks all bild commands that were failing with stdin errors.
Diffstat (limited to 'Omni/Cloud/Networking.nix')
0 files changed, 0 insertions, 0 deletions