[Lldb-commits] [lldb] [lldb][AIX] get host info for AIX (cont..) (PR #138687)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri May 23 00:23:07 PDT 2025
labath wrote:
> I don't know if this is the source of the problem, but one thing I noticed is that you're missing some sort of synchronization to make sure the child process doesn't exit before you're able to observe it. A slightly lame but probably sufficient method to do that would be to put a long (say, 1 minute, it's there just to ensure the process exits if something goes wrong) sleep into the child, and then have the parent kill it when it is done with it.
The code looks good, but you still need to do something to ensure there's no race in retrieving the process info.
https://github.com/llvm/llvm-project/pull/138687
More information about the lldb-commits
mailing list