From 503db98543e47045ed6a3465b0bdabcbb01d2b01 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 21 Sep 2011 22:26:13 +0000 Subject: updated from pure-data.git v0.43.1test4 svn path=/trunk/; revision=15336 --- externals/extra/pd~/pd~.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'externals/extra/pd~/pd~.c') 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 #include #include +#include #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; -- cgit v1.2.1