aboutsummaryrefslogtreecommitdiff
path: root/externals/extra/pd~/pd~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-09-21 22:26:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-09-21 22:26:13 +0000
commit503db98543e47045ed6a3465b0bdabcbb01d2b01 (patch)
tree31d27b178d7b651d1935db957fe7fa391d6156e6 /externals/extra/pd~/pd~.c
parent6b418a345a18f15a592ff65de48d4fd755cf3daa (diff)
updated from pure-data.git v0.43.1test4
svn path=/trunk/; revision=15336
Diffstat (limited to 'externals/extra/pd~/pd~.c')
-rw-r--r--externals/extra/pd~/pd~.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/externals/extra/pd~/pd~.c b/externals/extra/pd~/pd~.c
index dc2eca4c..8a1f5c39 100644
--- a/externals/extra/pd~/pd~.c
+++ b/externals/extra/pd~/pd~.c
@@ -14,6 +14,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#include <fcntl.h>
#ifdef _MSC_VER
#pragma warning (disable: 4305 4244)
@@ -252,6 +253,8 @@ static void pd_tilde_donew(t_pd_tilde *x, char *pddir, char *schedlibdir,
/* OK, we're parent */
close(pipe1[0]);
close(pipe2[1]);
+ fcntl(pipe1[1], F_SETFD, FD_CLOEXEC);
+ fcntl(pipe2[0], F_SETFD, FD_CLOEXEC);
x->x_outfd = fdopen(pipe1[1], "w");
x->x_infd = fdopen(pipe2[0], "r");
x->x_childpid = pid;