From: Matthias Wachs Date: Wed, 15 Sep 2010 08:32:00 +0000 (+0000) Subject: 0001602: A patch to fix process spawning with redirected std streams X-Git-Tag: initial-import-from-subversion-38251~20330 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b9dfe56e2e6acc113ee6865cb583402f588e57e;p=oweals%2Fgnunet.git 0001602: A patch to fix process spawning with redirected std streams --- diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index d02372689..bef0da583 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -71,8 +71,8 @@ static void cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx static void helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tsdkctx); static void start_helper_and_schedule() { - mycls.helper_in = GNUNET_DISK_pipe(GNUNET_YES); - mycls.helper_out = GNUNET_DISK_pipe(GNUNET_YES); + mycls.helper_in = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO);; + mycls.helper_out = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_NO, GNUNET_YES); if (mycls.helper_in == NULL || mycls.helper_out == NULL) return;