ysf / anewer

anewer appends lines from stdin to a file if they don't already exist in the file. This is a rust version of https://github.com/tomnomnom/anew
https://github.com/ysf/anewer
GNU General Public License v3.0
57 stars 4 forks source link

fix: gracefully handle closed IO stream leading to SIGPIPE #2

Closed anthraxx closed 3 years ago

anthraxx commented 3 years ago

This would otherwise lead to panic when the streams are early closed, for example by piped grep or head/tail calls.