tools: handle POLLHUP on stdin
tools: handle POLLHUP on stdin

Otherwise netresolve wouldn't exit when reading input from a pipe.

pavlix/netresolve,crossdistro/netresolve,pavlix/netresolve,crossdistro/netresolve,pavlix/netresolve,crossdistro/netresolve