mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Kernel: Make the create_thread() syscall return the new thread ID.
This commit is contained in:
parent
0a1bd03f1d
commit
ad7ec2bbc7
Notes:
sideshowbarker
2024-07-19 13:16:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ad7ec2bbc71
1 changed files with 1 additions and 1 deletions
|
@ -2631,7 +2631,7 @@ int Process::sys$create_thread(int (*entry)(void*), void* argument)
|
|||
thread->make_userspace_stack_for_secondary_thread(argument);
|
||||
|
||||
thread->set_state(Thread::State::Runnable);
|
||||
return 0;
|
||||
return thread->tid();
|
||||
}
|
||||
|
||||
void Process::sys$exit_thread(int code)
|
||||
|
|
Loading…
Add table
Reference in a new issue