Module: xenomai-3
Branch: stable-3.0.x
Commit: 1673cc2b0452b2aa992c45db50de1df06eca545d
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1673cc2b0452b2aa992c45db50de1df06eca545d

Author: Philippe Gerum <[email protected]>
Date:   Sun Apr  1 10:10:20 2018 +0200

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

See http://xenomai.org/pipermail/xenomai/2018-March/038593.html

---

 lib/copperplate/registry.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index b37c409..1d4114a 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -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);


_______________________________________________
Xenomai-git mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to