Skip to content
Snippets Groups Projects
Commit bd2142c3 authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC)


Suggested-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent 3338a41f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment