[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 12/26] qga: replace pipe() with g_unix_open_pipe(CLOEXEC)
From: |
marcandre . lureau |
Subject: |
[PATCH v2 12/26] qga: replace pipe() with g_unix_open_pipe(CLOEXEC) |
Date: |
Tue, 26 Apr 2022 13:27:01 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
qga/commands-posix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 77f4672ca2c9..094487c2c395 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;
}
--
2.36.0
- Re: [PATCH v2 07/26] tests: make libqmp buildable for win32, (continued)
- [PATCH v2 08/26] Use g_unix_set_fd_nonblocking(), marcandre . lureau, 2022/04/26
- [PATCH v2 09/26] block: move fcntl_setfl(), marcandre . lureau, 2022/04/26
- [PATCH v2 11/26] util: replace pipe()+cloexec with g_unix_open_pipe(), marcandre . lureau, 2022/04/26
- [PATCH v2 10/26] Replace qemu_pipe() with g_unix_open_pipe(), marcandre . lureau, 2022/04/26
- [PATCH v2 13/26] tests: replace pipe() with g_unix_open_pipe(CLOEXEC), marcandre . lureau, 2022/04/26
- [PATCH v2 12/26] qga: replace pipe() with g_unix_open_pipe(CLOEXEC),
marcandre . lureau <=
- [PATCH v2 14/26] os-posix: replace pipe()+cloexec with g_unix_open_pipe(CLOEXEC), marcandre . lureau, 2022/04/26
- [PATCH v2 17/26] Replace fcntl(0_NONBLOCK) with g_unix_set_fd_nonblocking(), marcandre . lureau, 2022/04/26
- [PATCH v2 16/26] io: replace pipe() with g_unix_open_pipe(CLOEXEC), marcandre . lureau, 2022/04/26
- [PATCH v2 15/26] virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC), marcandre . lureau, 2022/04/26
- [PATCH v2 19/26] chardev: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26