diff options
author | Marc-André Lureau | 2022-04-22 12:46:36 +0200 |
---|---|---|
committer | Marc-André Lureau | 2022-05-03 13:18:41 +0200 |
commit | ed78331ddafeca55f45ce9ce8bec6c7660a6d621 (patch) | |
tree | 956af43392fbc693b9b76815d7467a7e19dd363e /qga | |
parent | util: replace pipe()+cloexec with g_unix_open_pipe() (diff) | |
download | qemu-ed78331ddafeca55f45ce9ce8bec6c7660a6d621.tar.gz qemu-ed78331ddafeca55f45ce9ce8bec6c7660a6d621.tar.xz qemu-ed78331ddafeca55f45ce9ce8bec6c7660a6d621.zip |
qga: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'qga')
-rw-r--r-- | qga/commands-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 77f4672ca2..094487c2c3 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -2529,7 +2529,7 @@ void qmp_guest_set_user_password(const char *username, goto out; } - if (pipe(datafd) < 0) { + if (!g_unix_open_pipe(datafd, FD_CLOEXEC, NULL)) { error_setg(errp, "cannot create pipe FDs"); goto out; } |