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-03-22 09:59:20 +00:00
2008-04-23 21:06:51 +00:00
2006-09-06 04:04:10 +00:00
2008-04-23 21:06:51 +00:00
2006-12-05 23:46:11 +00:00
2006-04-04 02:57:49 +00:00
2006-12-05 05:01:57 +00:00
2008-06-09 01:14:10 +00:00
2006-04-04 02:57:49 +00:00
2008-04-02 08:33:42 +00:00
2008-08-01 01:21:49 +00:00
2008-04-29 03:58:18 +00:00
2006-04-04 02:57:49 +00:00
2007-01-12 07:26:21 +00:00
2008-09-14 16:07:21 +00:00
2008-09-09 17:14:32 +00:00
2008-11-27 11:27:59 +00:00
2008-03-22 09:59:20 +00:00
2007-01-12 07:26:21 +00:00
2006-09-21 04:21:30 +00:00
2007-04-05 07:20:31 +00:00
2008-05-29 07:57:33 +00:00
2006-11-28 11:05:31 +00:00
2006-09-21 04:21:30 +00:00
2007-01-12 07:26:21 +00:00
2006-11-24 09:57:38 +00:00
2006-04-04 02:57:49 +00:00
2007-01-12 07:26:21 +00:00
2008-06-24 07:32:12 +00:00
2008-03-20 11:47:08 +00:00
2008-05-30 00:02:59 +00:00
2008-06-09 01:14:10 +00:00
2007-10-16 07:36:02 +00:00
2008-04-29 03:58:18 +00:00
2008-04-22 06:44:11 +00:00
2008-04-14 08:08:40 +00:00
2006-04-04 02:57:49 +00:00
2007-01-12 07:26:21 +00:00
2008-04-29 03:58:18 +00:00
2007-01-12 07:26:21 +00:00
2006-09-21 04:21:30 +00:00
2008-04-29 03:58:18 +00:00
2007-01-12 07:26:21 +00:00
2007-11-06 21:50:43 +00:00
2008-04-23 21:06:51 +00:00
2006-04-04 02:57:49 +00:00
2008-04-29 03:58:18 +00:00
2006-04-04 02:57:49 +00:00
2007-01-12 07:26:21 +00:00
2008-05-30 14:47:42 +00:00
2008-06-24 07:32:12 +00:00
2008-06-24 07:32:12 +00:00
2007-01-12 07:26:21 +00:00