1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS/Linux/Android: Fixed an issue where reading the output of a ChildProcess could hang or return incorrect output

This commit is contained in:
hogliux 2018-04-17 10:39:10 +01:00
parent 4a73a9a6f0
commit e89c4d5d4e

View file

@ -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)