summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.cpp2
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)