mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Kernel: Run NetworkTask in init stage 2 to allow use of locks
This commit is contained in:
parent
bed069bd14
commit
61bdf09d78
Notes:
sideshowbarker
2024-07-19 12:28:10 +09:00
Author: https://github.com/deoxxa
Commit: 61bdf09d78
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue