fix POLL_HUP