Kernel: Verify Process coredump threads are empty

This commit is contained in:
Jelle Raaijmakers 2021-06-14 15:47:19 +02:00 committed by Andreas Kling
parent 5b03b62518
commit ab840423a8
Notes: sideshowbarker 2024-07-18 12:14:50 +09:00

View File

@ -565,6 +565,7 @@ void Process::die()
// slave owner, we have to allow the PTY pair to be torn down.
m_tty = nullptr;
VERIFY(m_threads_for_coredump.is_empty());
for_each_thread([&](auto& thread) {
m_threads_for_coredump.append(thread);
});