diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-06 07:37:25 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-06 07:37:25 +0200 |
commit | 7aef4a9c3e5e1d2af6a5c43f6dc43b00df440a46 (patch) | |
tree | 947a6abf7f518dcd1966fcc73cb5efaee78f8912 | |
parent | 7cf13f80ad8cc2aa6f0b2b9b879d0a2038e70e06 (diff) |
weston-launch: Use MSG_CMSG_CLOEXEC
-rw-r--r-- | src/launcher_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/launcher_util.c b/src/launcher_util.c index 0975cca..f02edab 100644 --- a/src/launcher_util.c +++ b/src/launcher_util.c @@ -79,7 +79,7 @@ weston_launcher_open(struct weston_compositor *compositor, msg.msg_controllen = sizeof control; do { - len = recvmsg(sock, &msg, 0); + len = recvmsg(sock, &msg, MSG_CMSG_CLOEXEC); } while (len < 0 && errno == EINTR); if (len != sizeof ret || @@ -99,7 +99,6 @@ weston_launcher_open(struct weston_compositor *compositor, fprintf(stderr, "missing drm fd in socket request"); return -1; } - fcntl(fd, F_SETFD, FD_CLOEXEC); out: free(buf); |