daemon: Make command channel file descriptors close-on-exec.

This commit is contained in:
Tom Goff 2016-01-29 17:49:16 -05:00
parent ec8ac2f258
commit 0853c95592

View file

@ -58,6 +58,9 @@ int vnode_connect(const char *name)
return -1;
}
if (set_cloexec(fd))
WARN("set_cloexec() failed for fd %d", fd);
if (set_nonblock(fd))
WARN("set_nonblock() failed for fd %d", fd);