From e89c4d5d4e5e9beed4adf7c21fc25e6b4a70e72f Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 17 Apr 2018 10:39:10 +0100 Subject: [PATCH] macOS/Linux/Android: Fixed an issue where reading the output of a ChildProcess could hang or return incorrect output --- modules/juce_core/native/juce_posix_SharedCode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index 1ca77c6b3b..638ff1bbdb 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -1211,7 +1211,7 @@ public: #error // some crazy 3rd party headers (e.g. zlib) define this function as NULL! #endif - if (childPID != 0) + if (readHandle == nullptr && childPID != 0) readHandle = fdopen (pipeHandle, "r"); if (readHandle != nullptr)