HemangGadhavi 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.
Hi @labath Added some delay which gives some time before retrieving the process info. Please review once. https://github.com/llvm/llvm-project/pull/138687 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits