소스 검색

Kernel: Make the create_thread() syscall return the new thread ID.

Andreas Kling 6 년 전
부모
커밋
ad7ec2bbc7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Kernel/Process.cpp

+ 1 - 1
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)