summaryrefslogtreecommitdiff
path: root/src/process/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/fork.c')
-rw-r--r--src/process/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process/fork.c b/src/process/fork.c
index f8cf21e7..43c52bc4 100644
--- a/src/process/fork.c
+++ b/src/process/fork.c
@@ -24,7 +24,7 @@ pid_t fork(void)
#endif
if (libc.has_thread_pointer && !ret) {
pthread_t self = __pthread_self();
- self->tid = self->pid = __syscall(SYS_getpid);
+ self->tid = __syscall(SYS_gettid);
memset(&self->robust_list, 0, sizeof self->robust_list);
libc.threads_minus_1 = 0;
}