================
@@ -403,7 +403,8 @@ void NativeProcessLinux::Manager::SigchldHandler() {
     // vice-versa. This means that if the child event arrives first, it may not
     // be handled by any process (because it doesn't know the thread belongs to
     // it).
-    bool handled = llvm::any_of(m_processes, [&](NativeProcessLinux *process) {
+    auto processes = llvm::to_vector(m_processes);
----------------
labath wrote:

```suggestion
    // The loop below may modify m_processes (create new entries), so operate 
on a temporary copy.
    auto processes = llvm::to_vector(m_processes);
```

.. or something like that.

https://github.com/llvm/llvm-project/pull/219752
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to