]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-posix.c
qga: replace qemu_open_old() with qga_open_cloexec()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 25 May 2022 14:41:33 +0000 (16:41 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 28 May 2022 09:42:56 +0000 (11:42 +0200)
commitb9947c9ce7eec9f31c9adfea2cd1f42e0bfe76b8
tree0fc8a0ea287e39d3b23064f54b2165e065e96769
parent87ed8b2c2cd03d2596c11559f3e64ba15f58a99e
qga: replace qemu_open_old() with qga_open_cloexec()

qemu_open_old() uses qemu_open_internal() which handles special
"/dev/fdset/" path for monitor fd sets, set CLOEXEC, and uses Error
reporting (and some O_DIRECT special error casing).

The monitor fdset handling is unnecessary for qga, use
qga_open_cloexec() instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-Id: <20220525144140.591926-9-marcandre.lureau@redhat.com>
qga/channel-posix.c
qga/commands-posix.c