1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Kernel: Run NetworkTask in init stage 2 to allow use of locks

This commit is contained in:
Conrad Pankoff 2019-08-28 10:56:05 +10:00 committed by Andreas Kling
parent bed069bd14
commit 61bdf09d78

View file

@ -152,6 +152,8 @@ VFS* vfs;
}
system_server_process->set_priority(Process::HighPriority);
Process::create_kernel_process("NetworkTask", NetworkTask_main);
current->process().sys$exit(0);
ASSERT_NOT_REACHED();
}
@ -268,7 +270,6 @@ extern "C" [[noreturn]] void init()
(void)current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
}
});
Process::create_kernel_process("NetworkTask", NetworkTask_main);
Scheduler::pick_next();