Linux: Use EPOLLRDHUP.
Minor fixes.