]> git.proxmox.com Git - mirror_qemu.git/commit - slirp/src/misc.c
slirp: simplify fork_exec()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 14 Nov 2018 12:36:05 +0000 (16:36 +0400)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Jan 2019 23:44:29 +0000 (00:44 +0100)
commit2bdb920ece0e05c7db70b6df44d724e4eebd91a0
tree0c8f0c69f18fbcbff34131c6464856ac739a2af3
parent0aeb4f2c9424fd283df581d0cae3843fcc045e0f
slirp: simplify fork_exec()

Use g_spawn_async_with_fds() to setup the child.

GSpawn handles reaping the child, and closing parent file descriptors.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/misc.c