Apple: wait for ~16 seconds for application launch

On Apple Silicon it can take ~10 seconds for the OS to launch an Intel x64 process.
The Intel executable is translated on launch using Rosetta.
This commit is contained in:
Jake Turner
2021-12-10 05:07:39 +00:00
committed by Baldur Karlsson
parent f9b6752f14
commit f74b350f93
+2 -2
View File
@@ -68,8 +68,8 @@ int GetIdentPort(pid_t childPid)
rdcstr lsof = StringFormat::Fmt("lsof -p %d -a -i 4 -F n", (int)childPid);
rdcstr result;
uint32_t wait = 1;
// Wait for a maximum of ~8 seconds
for(int i = 0; i < 13; ++i)
// Wait for a maximum of ~16 seconds
for(int i = 0; i < 14; ++i)
{
result = execcmd(lsof.c_str());
if(!result.empty())