Commit 1673cc2b authored by Philippe Gerum's avatar Philippe Gerum

copperplate/registry: set close-on-exec flag on client socket

See http://xenomai.org/pipermail/xenomai/2018-March/038593.html
parent 1cdcf888
......@@ -717,7 +717,7 @@ static int connect_regd(const char *sessdir, char **mountpt, int flags)
sun.sun_path[0] = '\0';
for (retries = 0; retries < 3; retries++) {
s = __STD(socket(AF_UNIX, SOCK_SEQPACKET, 0));
s = __STD(socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0));
if (s < 0) {
ret = -errno;
free(*mountpt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment