| @@ -1260,6 +1260,11 @@ public: | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| int getPID() const noexcept | |||||
| { | |||||
| return childPID; | |||||
| } | |||||
| int childPID = 0; | int childPID = 0; | ||||
| int pipeHandle = 0; | int pipeHandle = 0; | ||||
| int exitCode = -1; | int exitCode = -1; | ||||
| @@ -487,6 +487,11 @@ public: | |||||
| return (uint32) exitCode; | return (uint32) exitCode; | ||||
| } | } | ||||
| int getPID() const noexcept | |||||
| { | |||||
| return 0; | |||||
| } | |||||
| bool ok; | bool ok; | ||||
| private: | private: | ||||
| @@ -81,6 +81,11 @@ String ChildProcess::readAllProcessOutput() | |||||
| } | } | ||||
| uint32 ChildProcess::getPID() const noexcept | |||||
| { | |||||
| return activeProcess != nullptr ? activeProcess->getPID() : 0; | |||||
| } | |||||
| //============================================================================== | //============================================================================== | ||||
| //============================================================================== | //============================================================================== | ||||
| #if JUCE_UNIT_TESTS | #if JUCE_UNIT_TESTS | ||||
| @@ -101,6 +101,8 @@ public: | |||||
| */ | */ | ||||
| bool kill(); | bool kill(); | ||||
| uint32 getPID() const noexcept; | |||||
| private: | private: | ||||
| //============================================================================== | //============================================================================== | ||||
| class ActiveProcess; | class ActiveProcess; | ||||