summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-07 17:12:25 +0200
committerRobin Gareus <robin@gareus.org>2013-06-07 17:12:25 +0200
commitdf99859ad2478700267a21f993eb421e555ae960 (patch)
tree98000f937d091fe0a0f53eddea51b18fb443bbb4 /libs/pbd
parent024e556cb2c3fb95721aaa83954aed373d2c7d0f (diff)
more sockets to close on fork()
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/crossthread.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/crossthread.cc b/libs/pbd/crossthread.cc
index 2ffede5163..aa9d2edcd2 100644
--- a/libs/pbd/crossthread.cc
+++ b/libs/pbd/crossthread.cc
@@ -52,6 +52,8 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking)
return;
}
}
+ fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC);
+ fcntl(fds[1], F_SETFD, fcntl(fds[1], F_GETFD) | FD_CLOEXEC);
}
CrossThreadChannel::~CrossThreadChannel ()