diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-10-06 15:36:54 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-10-12 19:22:01 +0400 |
commit | bb06b0143b492203ab3d17640be1d819cfc33de7 (patch) | |
tree | cd0670513e91886bcc3a78cdb3adc5c6f034737e /io/channel-command.c | |
parent | 3f08376c2e1c3d3bb0b415fb1505b949d72655d4 (diff) |
tests/channel-helper: set blocking in main thread
The /io/channel/command/echo tests run the reader side and the writer
side with the same underlying command channel. Setting the blocking mode
of the fd/handles while the other end is already reading/writing may
create issues (deadlock in win32 when earlier attempt of this series
were using SetNamedPipeHandleState). Let's just do it before spawning
the threads to avoid further concurrency issues.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221006113657.2656108-4-marcandre.lureau@redhat.com>
Diffstat (limited to 'io/channel-command.c')
0 files changed, 0 insertions, 0 deletions