daemon: Make command channel file descriptors close-on-exec.
This commit is contained in:
parent
ec8ac2f258
commit
0853c95592
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ int vnode_connect(const char *name)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (set_cloexec(fd))
|
||||||
|
WARN("set_cloexec() failed for fd %d", fd);
|
||||||
|
|
||||||
if (set_nonblock(fd))
|
if (set_nonblock(fd))
|
||||||
WARN("set_nonblock() failed for fd %d", fd);
|
WARN("set_nonblock() failed for fd %d", fd);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue