diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-11-16 14:09:11 +0000 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-11-17 00:38:37 +0000 |
| commit | 5b6ee0e0ba7321ca37db12a942493e4ea8eead92 (patch) | |
| tree | 831dc5b6ba00e85e9ecf5a3df8cf4a7ab36c7fd5 /hurd | |
| parent | f63dd924312919667f8c71f7701523dfdc542067 (diff) | |
htl: move pthread_create to into libc
This is notably needed for the main thread structure to be always
initialized so that some pthread functions can work from the main thread
without other threads, e.g. pthread_cancel.
Diffstat (limited to 'hurd')
| -rw-r--r-- | hurd/hurdsig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 672bc06f88..ab02b1d7e5 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -1519,8 +1519,8 @@ _hurdsig_init (const int *intarray, size_t intarraysize) /* Start the signal thread listening on the message port. */ -#pragma weak __pthread_create - if (!__pthread_create) +#pragma weak __libc_pthread_create + if (!__libc_pthread_create) { err = __thread_create (__mach_task_self (), &_hurd_msgport_thread); assert_perror (err); @@ -1564,7 +1564,7 @@ _hurdsig_init (const int *intarray, size_t intarraysize) #pragma weak __pthread_detach #pragma weak __pthread_getattr_np #pragma weak __pthread_attr_getstack - __pthread_create(&thread, NULL, &_hurd_msgport_receive, NULL); + __libc_pthread_create (&thread, NULL, &_hurd_msgport_receive, NULL); /* Record signal thread stack layout for fork() */ __pthread_getattr_np (thread, &attr); |
