HomeFreeBSD

Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post.
rS185369Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post.
Threading library calls _pre before the fork, allowing the rtld to
lock itself to ensure that other threads of the process are out of
dynamic linker. _post releases the locks.

This allows the rtld to have consistent state in the child. Although
child may legitimately call only async-safe functions, the call may
need plt relocation resolution, and this requires working rtld.

Reported and debugging help by: rink
Reviewed by: kan, davidxu
MFC after: 1 month (anyway, not before 7.1 is out)

Details

Provenance
kibAuthored on
Parents
rS185368: Prepare for contributed software registration experiment - releng 7.1
Branches
Unknown
Tags
Unknown

Event Timeline