[PATCH v2 1/9] nptl: Remove exit-thread.h
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Jun 1 12:55:22 GMT 2021
On 01/06/2021 04:51, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
>
>> diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
>> index 2d2535b07d..aacbba1cac 100644
>> --- a/nptl/pthread_create.c
>> +++ b/nptl/pthread_create.c
>> @@ -30,7 +30,6 @@
>> #include <libc-internal.h>
>> #include <resolv.h>
>> #include <kernel-features.h>
>> -#include <exit-thread.h>
>> #include <default-sched.h>
>> #include <futex-internal.h>
>> #include <tls-setup.h>
>> @@ -575,7 +574,10 @@ start_thread (void *arg)
>>
>> The exit code is zero since in case all threads exit by calling
>> 'pthread_exit' the exit status must be 0 (zero). */
>> - __exit_thread ();
>> + while (1)
>> + {
>> + INTERNAL_SYSCALL_CALL (exit, 0);
>> + }
>>
>> /* NOTREACHED */
>> }
>
> You could leave off the braces. But still looks good.
Ack.
More information about the Libc-alpha
mailing list