mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Ensure Process::create is always checked as true before continue doing anything.
This commit is contained in:
@@ -3660,14 +3660,15 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
|
||||
{
|
||||
std::string lldbPath;
|
||||
Process p;
|
||||
p.create( "xcrun -f lldb" );
|
||||
p.readAllStdOut( lldbPath, Seconds( 5 ) );
|
||||
int retCode = -1;
|
||||
p.join( &retCode );
|
||||
if ( retCode == 0 && !lldbPath.empty() ) {
|
||||
String::trimInPlace( lldbPath, '\n' );
|
||||
if ( std::find( paths.begin(), paths.end(), lldbPath ) == paths.end() )
|
||||
paths.emplace_back( lldbPath );
|
||||
if ( p.create( "xcrun -f lldb" ) ) {
|
||||
p.readAllStdOut( lldbPath, Seconds( 5 ) );
|
||||
int retCode = -1;
|
||||
p.join( &retCode );
|
||||
if ( retCode == 0 && !lldbPath.empty() ) {
|
||||
String::trimInPlace( lldbPath, '\n' );
|
||||
if ( std::find( paths.begin(), paths.end(), lldbPath ) == paths.end() )
|
||||
paths.emplace_back( lldbPath );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user