[Virtio-fs] [PATCH v2 15/26] virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC)
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Tue Apr 26 09:27:04 UTC 2022
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Suggested-by: Daniel P. Berrangé <berrange at redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau at 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
More information about the Virtio-fs
mailing list