eadler cab3b5ae21 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
2012-05-30 04:06:38 +00:00
..
2007-04-19 14:01:04 +00:00
2009-11-25 04:21:42 +00:00
2012-05-12 20:27:13 +00:00
2012-04-28 21:50:30 +00:00
2012-05-12 20:27:13 +00:00