aboutsummaryrefslogtreecommitdiff
path: root/nptl/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/init.c')
-rw-r--r--nptl/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/init.c b/nptl/init.c
index 395ede7..d9c315c 100644
--- a/nptl/init.c
+++ b/nptl/init.c
@@ -123,8 +123,8 @@ __pthread_initialize_minimal (void)
THREAD_SETMEM (pd, cpuclock_offset, GL(dl_cpuclock_offset));
#endif
- /* Add the main thread to the list of all running threads. No need
- to get the lock we are alone so far. */
+ /* Initialize the list of all running threads with the main thread. */
+ INIT_LIST_HEAD (__stack_user);
list_add (&pd->header.data.list, &__stack_user);