1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Kernel: Don't add the colonel process' main thread to g_threads.

This was causing the colonel to get scheduled when he wasn't needed.
This commit is contained in:
Andreas Kling 2019-03-23 22:17:38 +01:00
parent 60d25f0f4a
commit 8501fdc6f5

View file

@ -59,8 +59,10 @@ Thread::Thread(Process& process)
m_tss.ss2 = m_process.pid();
m_far_ptr.offset = 0x98765432;
InterruptDisabler disabler;
g_threads->prepend(this);
if (m_process.pid() != 0) {
InterruptDisabler disabler;
g_threads->prepend(this);
}
}
Thread::~Thread()