Apple increased lsof wait time

Need a longer time when launching applications from xcode for debugging
Previously the wait time was ~1 second, now it is ~8 seconds
This commit is contained in:
Jake Turner
2021-03-12 05:26:43 +00:00
committed by Baldur Karlsson
parent ddd6d2f86f
commit 65e0028f64
+2 -1
View File
@@ -68,7 +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;
for(int i = 0; i < 10; ++i)
// Wait for a maximum of ~8 seconds
for(int i = 0; i < 13; ++i)
{
result = execcmd(lsof.c_str());
if(!result.empty())