Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



On 19.04.2020 03:06, Joerg Sonnenberger wrote:
> Module Name:	src
> Committed By:	joerg
> Date:		Sun Apr 19 01:06:16 UTC 2020
> 
> Modified Files:
> 	src/lib/libc/gen: pthread_atfork.c
> 	src/libexec/ld.elf_so: rtld.c rtld.h symbols.map
> 
> Log Message:
> Rename __atomic_fork to __locked_fork and give it &errno as argument.
> rtld and libc use different storage, so the initial version would
> incorrectly report the failure reason for fork().
> 
> There is still a small race condition inside ld.elf_so as it doesn't use
> thread-safe errno internally, but that's a more contained internal
> issue.
> 
> 


Should we add the same logic for clone(2)?

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index