Source-Changes archive

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

CVS commit: src

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

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

To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gen/pthread_atfork.c
cvs rdiff -u -r1.204 -r1.205 src/libexec/ld.elf_so/rtld.c
cvs rdiff -u -r1.139 -r1.140 src/libexec/ld.elf_so/rtld.h
cvs rdiff -u -r1.3 -r1.4 src/libexec/ld.elf_so/

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index