On Mon, 29 Jul 2024 23:58:59 GMT Konstantin Belousov <[email protected]> wrote:
> The branch main has been updated by kib: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=860c4d94ac46cee35a678cf3c9cdbd437dfed75e > > commit 860c4d94ac46cee35a678cf3c9cdbd437dfed75e > Author: Konstantin Belousov <[email protected]> > AuthorDate: 2024-07-17 04:05:33 +0000 > Commit: Konstantin Belousov <[email protected]> > CommitDate: 2024-07-29 23:57:33 +0000 > > rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var > > which makes threaded fork ignore the phdr rtld lock, in particular > allowing the dl_iterate_phdr() to block in callback. The cost is that > the image started in this mode cannot use dl_iterate_phdr() after fork. > > PR: 280318 > Sponsored by: The FreeBSD Foundation > MFC after: 1 week > --- > libexec/rtld-elf/rtld.1 | 10 +++++++++- > libexec/rtld-elf/rtld.c | 1 + > libexec/rtld-elf/rtld.h | 1 + > libexec/rtld-elf/rtld_lock.c | 7 +++++-- > 4 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/libexec/rtld-elf/rtld.1 b/libexec/rtld-elf/rtld.1 > index 992138b1ffc0..31e046a5cdc4 100644 > --- a/libexec/rtld-elf/rtld.1 > +++ b/libexec/rtld-elf/rtld.1 > @@ -26,7 +26,7 @@ > .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF > .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > .\" > -.Dd April 28, 2024 > +.Dd July 24, 2025 <== SHOULD BE 2024 > .Dt RTLD 1 [SNIP] -- Gary Jennejohn
