stdlib: resolve a double lock init issue after fork [BZ #32994]
Davide Cavalca
davide@cavalca.name
Tue Jun 17 09:05:12 GMT 2025
On 2025-06-17 07:04, Florian Weimer wrote:
> * Florian Weimer:
>
>> * Davide Cavalca:
>>
>>> + memcpy (&lock, &reset_lock, sizeof(lock));
>>
>> May I change this line to
>>
>> + memcpy (&lock, &reset_lock, sizeof (lock));
>>
>> (one more space)? Then I think it's ready to go in.
>>
>> Reviewed-by: Florian Weimer <fweimer@redhat.com>
>
> It's also missing #include <string.h>, which causes a build failure on
> Hurd.
Thanks Florian, updated.
Cheers
Davide
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stdlib-resolve-a-double-lock-init-issue-after-fork-B.patch
Type: text/x-diff
Size: 1614 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250617/ede0c178/attachment.bin>
More information about the Libc-alpha
mailing list