@@ -1234,6 +1234,11 @@ public: | |||||
return 0; | return 0; | ||||
} | } | ||||
int getPID() const noexcept | |||||
{ | |||||
return childPID; | |||||
} | |||||
int childPID; | int childPID; | ||||
private: | private: | ||||
@@ -488,6 +488,11 @@ public: | |||||
return (uint32) exitCode; | return (uint32) exitCode; | ||||
} | } | ||||
int getPID() const noexcept | |||||
{ | |||||
return 0; | |||||
} | |||||
bool ok; | bool ok; | ||||
private: | private: | ||||
@@ -75,6 +75,11 @@ String ChildProcess::readAllProcessOutput() | |||||
return result.toString(); | return result.toString(); | ||||
} | } | ||||
uint32 ChildProcess::getPID() const noexcept | |||||
{ | |||||
return activeProcess != nullptr ? activeProcess->getPID() : 0; | |||||
} | |||||
//============================================================================== | //============================================================================== | ||||
#if JUCE_UNIT_TESTS | #if JUCE_UNIT_TESTS | ||||
@@ -99,6 +99,8 @@ public: | |||||
*/ | */ | ||||
bool kill(); | bool kill(); | ||||
uint32 getPID() const noexcept; | |||||
private: | private: | ||||
//============================================================================== | //============================================================================== | ||||
class ActiveProcess; | class ActiveProcess; | ||||