An epoll-based wrapper for terminating children when stdin closes
C Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
automake.sh
eppipe.c

README.md

eppipe

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.

Usage

eppipe tail -f /tmp/foo