[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 15/26] virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC
From: |
marcandre . lureau |
Subject: |
[PATCH v2 15/26] virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC) |
Date: |
Tue, 26 Apr 2022 13:27:04 +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>
---
tools/virtiofsd/helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c
index f8981e5bdf1a..f5f66f292c70 100644
--- a/tools/virtiofsd/helper.c
+++ b/tools/virtiofsd/helper.c
@@ -275,7 +275,7 @@ int fuse_daemonize(int foreground)
int waiter[2];
char completed;
- if (pipe(waiter)) {
+ if (!g_unix_open_pipe(waiter, FD_CLOEXEC, NULL)) {
fuse_log(FUSE_LOG_ERR, "fuse_daemonize: pipe: %s\n",
strerror(errno));
return -1;
--
2.36.0
- [PATCH v2 13/26] tests: replace pipe() with g_unix_open_pipe(CLOEXEC), (continued)
- [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, 2022/04/26
- [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 <=
- [PATCH v2 19/26] chardev: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26
- [PATCH v2 18/26] io: make qio_channel_command_new_pid() static, marcandre . lureau, 2022/04/26
- [PATCH v2 20/26] io: replace qemu_set{_non}block(), marcandre . lureau, 2022/04/26
- [PATCH v2 22/26] hw: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26
- [PATCH v2 21/26] qga: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26
- [PATCH v2 23/26] ui: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26
- [PATCH v2 24/26] net: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26
- [PATCH v2 25/26] tests: replace qemu_set_nonblock(), marcandre . lureau, 2022/04/26