summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/ipc-unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/ipc-unix.c b/input/ipc-unix.c
index abef0972d9..cd788e0061 100644
--- a/input/ipc-unix.c
+++ b/input/ipc-unix.c
@@ -272,6 +272,8 @@ bool mp_ipc_start_anon_client(struct mp_ipc_ctx *ctx, struct mpv_handle *h,
int pair[2];
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair))
return false;
+ mp_set_cloexec(pair[0]);
+ mp_set_cloexec(pair[1]);
struct client_arg *client = talloc_ptrtype(NULL, client);
*client = (struct client_arg){