mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Don't disable interrupts during Thread destruction.
This commit is contained in:
parent
d5508e5116
commit
1592612a60
Notes:
sideshowbarker
2024-07-19 14:55:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1592612a60e
1 changed files with 4 additions and 2 deletions
|
@ -612,8 +612,10 @@ Process::Process(String&& name, uid_t uid, gid_t gid, pid_t ppid, RingLevel ring
|
|||
Process::~Process()
|
||||
{
|
||||
dbgprintf("~Process{%p} name=%s pid=%d, m_fds=%d\n", this, m_name.characters(), pid(), m_fds.size());
|
||||
InterruptDisabler disabler;
|
||||
system.nprocess--;
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
system.nprocess--;
|
||||
}
|
||||
|
||||
delete m_main_thread;
|
||||
m_main_thread = nullptr;
|
||||
|
|
Loading…
Reference in a new issue