git: rtld - Add fork hooks for libthread_xu to install
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Nov 1 17:34:31 PDT 2017
commit e19be507c3558537e9f2545ba92e771755eddf5f
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/e19be507c3558537e9f2545ba92e771755eddf5f
--
DragonFly BSD source repository
More information about the Commits
mailing list