K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T04:06:38.384646Z K 7 svn:log V 243 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 Reviewed by: theraven Approved by: cperciva MFC after: 2 weeks END