Browse Source

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

tags/2021-05-28
hogliux 7 years ago
parent
commit
e89c4d5d4e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_posix_SharedCode.h

+ 1
- 1
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -1211,7 +1211,7 @@ public:
#error // some crazy 3rd party headers (e.g. zlib) define this function as NULL! #error // some crazy 3rd party headers (e.g. zlib) define this function as NULL!
#endif #endif
if (childPID != 0)
if (readHandle == nullptr && childPID != 0)
readHandle = fdopen (pipeHandle, "r"); readHandle = fdopen (pipeHandle, "r");
if (readHandle != nullptr) if (readHandle != nullptr)


Loading…
Cancel
Save