diff options
| author | Olga Krishtal | 2015-10-28 16:13:57 +0100 |
|---|---|---|
| committer | Michael Roth | 2015-11-04 14:37:56 +0100 |
| commit | fb68777312887000cd0367d72621fdd67cc4a0a0 (patch) | |
| tree | 30056d530f71e0defc258fae542b6e6961ac2d02 /scripts | |
| parent | qga: fixed CloseHandle in qmp_guest_file_open (diff) | |
| download | qemu-fb68777312887000cd0367d72621fdd67cc4a0a0.tar.gz qemu-fb68777312887000cd0367d72621fdd67cc4a0a0.tar.xz qemu-fb68777312887000cd0367d72621fdd67cc4a0a0.zip | |
qga: set file descriptor in qmp_guest_file_open non-blocking on Win32
Set fd non-blocking to avoid common use cases (like reading from a
named pipe) from hanging the agent. This was missed in the original
code.
The patch introduces qemu_set_handle_nonoblocking, the local analog
of qemu_set_nonblock for HANDLES.
The usage of handles in qemu_set_non/block is impossible, because for
win32 there is a difference between file discriptors and file handles,
and all file ops are made via Win32 api.
Signed-off-by: Olga Krishtal <okrishtal@parallels.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Michael Roth <mdroth@linux.vnet.ibm.com>
CC: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
