Konstantin Belousov cb5c4b10ba 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)
2008-11-27 11:27:59 +00:00
..
2008-09-01 22:55:23 +00:00
2008-05-04 22:24:40 +00:00
2007-06-10 19:06:09 +00:00
2008-05-15 15:28:18 +00:00
2008-11-27 09:21:37 +00:00
2007-04-09 01:45:30 +00:00
2008-11-25 02:15:09 +00:00
2008-08-08 00:21:27 +00:00