read() errno control for testing in travis, still works with other machines