|
- diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h
- index ad46cf390..13724ba7c 100644
- --- a/modules/juce_core/native/juce_posix_SharedCode.h
- +++ b/modules/juce_core/native/juce_posix_SharedCode.h
- @@ -1239,6 +1239,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 4a4148119..1c38ff2cf 100644
- --- a/modules/juce_core/native/juce_win32_Threads.cpp
- +++ b/modules/juce_core/native/juce_win32_Threads.cpp
- @@ -477,6 +477,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 3b284c25a..31e9c8d94 100644
- --- a/modules/juce_core/threads/juce_ChildProcess.cpp
- +++ b/modules/juce_core/threads/juce_ChildProcess.cpp
- @@ -81,6 +81,11 @@ String ChildProcess::readAllProcessOutput()
- }
-
-
- +uint32 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 47a26281b..74dbb11ab 100644
- --- a/modules/juce_core/threads/juce_ChildProcess.h
- +++ b/modules/juce_core/threads/juce_ChildProcess.h
- @@ -101,6 +101,8 @@ public:
- */
- bool kill();
-
- + uint32 getPID() const noexcept;
- +
- private:
- //==============================================================================
- class ActiveProcess;
|