diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-14 10:17:58 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-14 10:17:58 +0200 |
commit | ad7ec2bbc717901ca63b504feff0711975f1f6f6 (patch) | |
tree | 9e4dd321fc08e360efa8adc4eca9cb88b32e5882 /Kernel | |
parent | 0a1bd03f1d4763537b1e9ec20c9cc348c59ffc47 (diff) | |
download | serenity-ad7ec2bbc717901ca63b504feff0711975f1f6f6.zip |
Kernel: Make the create_thread() syscall return the new thread ID.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 7f0581a63c..2c071bd0f7 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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) |