[ovs-dev] [PATCH 08/10] test-ovsdb: Fix setvbuf incompatibility on Windows.
blp at nicira.com
Wed May 14 18:27:52 UTC 2014
On Tue, May 13, 2014 at 09:03:22AM -0700, Gurucharan Shetty wrote:
> setvbuf() in Windows treats _IOLBF to be the same as _IOFBF. So
> we cannot have size as zero (otherwise, there is a crash).
> Workaround is to set _IONBF. I don't see unit test failures
> because of the change.
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
This is OK. Or we could just supply BUFSIZ as the buffer size.
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev