mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-03 16:41:26 +01:00
`pdfs ls | head` ended in a "Broken pipe" panic once `head` had its lines, because std's `println!` panics on a failed write. The CLI now shadows `println!` and `print!` with versions that exit 0 on a closed pipe and report any other write error, such as a full disk, with exit 1. Restoring the default SIGPIPE would also stop the panic, but the same binary runs the daemon, which must not die when a socket's peer goes away.