diff options
-rw-r--r-- | Kernel/Process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 493cc74db1..5c1bd570a1 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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; |