git: DragonFly_RELEASE_5_0 rtld - Add fork hooks for libthread_xu to install

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 1 19:32:12 PDT 2017


commit cef41a6a4c78cddc0cb367a1935f9512d049305c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 1 17:15:26 2017 -0700

    rtld - Add fork hooks for libthread_xu to install
    
    * Add fork hooks for libthread_xu to install.  rtld must acquire its
      locks exclusively during a fork, and then release them after the
      fork is complete, to prevent the fork() from catching the locks in
      a bad state.  See libthread_xu.

Summary of changes:
 lib/libc/sysvipc/sem.c             | 18 +++++++++++-----
 lib/libthread_xu/thread/thr_join.c |  3 +++
 lib/libthread_xu/thread/thr_umtx.c | 39 ++++++++++++++++++++++-----------
 libexec/rtld-elf/Symbol.map        |  3 +++
 libexec/rtld-elf/rtld_lock.c       | 44 ++++++++++++++++++++++++++++++++------
 libexec/rtld-elf/rtld_lock.h       |  6 +++++-
 6 files changed, 88 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cef41a6a4c78cddc0cb367a1935f9512d049305c


-- 
DragonFly BSD source repository



More information about the Commits mailing list