Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 351 Bytes


So, you've got a program like tail that doesn't detect when the other end of whatever is on stdin/stdout (like a pipe, or xinetd) has closed until it tries to write. How to fix? You could write a new version of tail. Or you could just wrap it in eppipe.


eppipe tail -f /tmp/foo