]> Git Repo - qemu.git/commit
io/command: implement support for win32
authorMarc-André Lureau <[email protected]>
Thu, 6 Oct 2022 11:36:56 +0000 (15:36 +0400)
committerMarc-André Lureau <[email protected]>
Wed, 12 Oct 2022 15:22:01 +0000 (19:22 +0400)
commitec5b6c9c5de985769a3d816b85cfe707a2decb93
tree50610752e1d173c6a86a26631c4782cb3ffe99b5
parenta95570e3e4d61a7c8e527e512246665c51caa6f4
io/command: implement support for win32

The initial implementation was changing the pipe state created by GLib
to PIPE_NOWAIT, but it turns out it doesn't work (read/write returns an
error). Since reading may return less than the requested amount, it
seems to be non-blocking already. However, the IO operation may block
until the FD is ready, I can't find good sources of information, to be
safe we can just poll for readiness before.

Alternatively, we could setup the FDs ourself, and use UNIX sockets on
Windows, which can be used in blocking/non-blocking mode. I haven't
tried it, as I am not sure it is necessary.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
Message-Id: <20221006113657.2656108[email protected]>
include/io/channel-command.h
io/channel-command.c
This page took 0.04351 seconds and 4 git commands to generate.