]> git.proxmox.com Git - qemu.git/commit - exec.c
Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32
authorFilip Navara <filip.navara@gmail.com>
Mon, 27 Jul 2009 15:02:04 +0000 (10:02 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:09:15 +0000 (14:09 -0500)
commitbf65f53fbaaca39600017247108b0627033f2fb1
tree4d3e8e9fd7ea2bba56a3077731ba202f130a93a4
parent8fde6546fbe5a63df584819b1279086030e410a9
Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32

On Win32 the setvbuf function requires the last parameter to be size between 2 and INT_MAX bytes, so the calls always failed. Since the whole point of the calls is to set line-buffered mode for the file handle and that's not supported on Win32 anyway, conditionally remove them.

Signed-off-by: Filip Navara <filip.navara@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
exec.c
vl.c