Skip to content

Commit ab84042

Browse files
gmtaawesomekling
authored andcommitted
Kernel: Verify Process coredump threads are empty
1 parent 5b03b62 commit ab84042

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Kernel/Process.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ void Process::die()
565565
// slave owner, we have to allow the PTY pair to be torn down.
566566
m_tty = nullptr;
567567

568+
VERIFY(m_threads_for_coredump.is_empty());
568569
for_each_thread([&](auto& thread) {
569570
m_threads_for_coredump.append(thread);
570571
});

0 commit comments

Comments
 (0)