mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Kernel: Verify Process coredump threads are empty
This commit is contained in:
parent
5b03b62518
commit
ab840423a8
Notes:
sideshowbarker
2024-07-18 12:14:50 +09:00
Author: https://github.com/gmta
Commit: ab840423a8
Pull-request: https://github.com/SerenityOS/serenity/pull/8052
Issue: https://github.com/SerenityOS/serenity/issues/7289
1 changed files with 1 additions and 0 deletions
|
@ -565,6 +565,7 @@ void Process::die()
|
||||||
// slave owner, we have to allow the PTY pair to be torn down.
|
// slave owner, we have to allow the PTY pair to be torn down.
|
||||||
m_tty = nullptr;
|
m_tty = nullptr;
|
||||||
|
|
||||||
|
VERIFY(m_threads_for_coredump.is_empty());
|
||||||
for_each_thread([&](auto& thread) {
|
for_each_thread([&](auto& thread) {
|
||||||
m_threads_for_coredump.append(thread);
|
m_threads_for_coredump.append(thread);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue