Don't panic on broken pipe (e.g. npmctl list-hosts | head)
All checks were successful
release / build-release (push) Successful in 11m9s

Reset SIGPIPE to SIG_DFL at startup so writing to a closed stdout
terminates the process quietly like normal Unix tools, instead of
panicking with "failed printing to stdout: Broken pipe".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011YPrEZVBpPVoCRyJz2exkZ
This commit is contained in:
brasse
2026-07-04 16:33:55 +02:00
parent 1d71265b84
commit 45307cd8f5
3 changed files with 12 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -629,6 +629,7 @@ dependencies = [
"chrono",
"clap",
"dirs",
"libc",
"reqwest",
"rpassword",
"serde",