Only set _w to 0 when the file stream is not currently reading. Without
this fflush may fail to write data in the buffer.
PR: kern/137819
Submitted by: Eric Blake <ebb9@byu.net>
Reviewed by: theraven
Approved by: cperciva
MFC after: 2 weeks
Only set _w to 0 when the file stream is not currently reading. Without rS236288Unpublished Tags None Referenced Files None Subscribers None
Description
Details
Event Timeline |