mbox series

[v4,0/6] io/command: implement portable spawn

Message ID 20221006113657.2656108-1-marcandre.lureau@redhat.com
Headers show
Series io/command: implement portable spawn | expand

Message

Marc-André Lureau Oct. 6, 2022, 11:36 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

This enables support of command spawning in the io/ subsystem on Windows.

v4:
 - add "util: make do_send_recv work with partial send/recv" patch
 - drop usage of SOCAT environment variable for tests
 - misc style fixes

v3:
 - actually make it work :) (it seems I didn't test correctly earlier attempts)
 - add a patch for readv_writev() and partial IOs
 - add a patch to avoid some potential race in echo test
 - drop usage of PIPE_NOWAIT which was broken

Marc-André Lureau (6):
  osdep: make readv_writev() work with partial read/write
  util: make do_send_recv work with partial send/recv
  tests/channel-helper: set blocking in main thread
  io/command: use glib GSpawn, instead of open-coding fork/exec
  io/command: implement support for win32
  tests/unit: make test-io-channel-command work on win32

 include/io/channel-command.h         |   5 +-
 io/channel-command.c                 | 185 +++++++++++----------------
 tests/unit/io-channel-helpers.c      |   9 +-
 tests/unit/test-io-channel-command.c |  37 +++---
 util/iov.c                           |  10 +-
 util/osdep.c                         |  11 +-
 6 files changed, 119 insertions(+), 138 deletions(-)