Merge "Fix stdio read after EOF behavior."