|
- diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h
- index 83c359154..efe1bda73 100644
- --- a/modules/juce_core/native/juce_posix_SharedCode.h
- +++ b/modules/juce_core/native/juce_posix_SharedCode.h
- @@ -1266,6 +1266,11 @@ public:
- return 0;
- }
-
- + int getPID() const noexcept
- + {
- + return childPID;
- + }
- +
- int childPID = 0;
- int pipeHandle = 0;
- int exitCode = -1;
- diff --git a/modules/juce_core/native/juce_win32_Threads.cpp b/modules/juce_core/native/juce_win32_Threads.cpp
- index 8d15042fe..867e6fd2f 100644
- --- a/modules/juce_core/native/juce_win32_Threads.cpp
- +++ b/modules/juce_core/native/juce_win32_Threads.cpp
- @@ -489,6 +489,11 @@ public:
- return (uint32) exitCode;
- }
-
- + int getPID() const noexcept
- + {
- + return 0;
- + }
- +
- bool ok;
-
- private:
- diff --git a/modules/juce_core/threads/juce_ChildProcess.cpp b/modules/juce_core/threads/juce_ChildProcess.cpp
- index 1e559b1c9..40ad651f0 100644
- --- a/modules/juce_core/threads/juce_ChildProcess.cpp
- +++ b/modules/juce_core/threads/juce_ChildProcess.cpp
- @@ -81,6 +81,11 @@ String ChildProcess::readAllProcessOutput()
- }
-
-
- +int ChildProcess::getPID() const noexcept
- +{
- + return activeProcess != nullptr ? activeProcess->getPID() : 0;
- +}
- +
- //==============================================================================
- //==============================================================================
- #if JUCE_UNIT_TESTS
- diff --git a/modules/juce_core/threads/juce_ChildProcess.h b/modules/juce_core/threads/juce_ChildProcess.h
- index 3c5e83bba..f6076fb82 100644
- --- a/modules/juce_core/threads/juce_ChildProcess.h
- +++ b/modules/juce_core/threads/juce_ChildProcess.h
- @@ -101,6 +101,8 @@ public:
- */
- bool kill();
-
- + int getPID() const noexcept;
- +
- private:
- //==============================================================================
- class ActiveProcess;
|