rtld - Add fork hooks for libthread_xu to install
commite19be507c3558537e9f2545ba92e771755eddf5f
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Nov 2017 00:15:26 +0000 (1 17:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Nov 2017 00:15:26 +0000 (1 17:15 -0700)
treea16fa5d1f2e056125f46272366ee63021e756727
parent42ce58d818149247ac68389ee79d7f5868e08db6
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.
lib/libc/sysvipc/sem.c
lib/libthread_xu/thread/thr_join.c
lib/libthread_xu/thread/thr_umtx.c
libexec/rtld-elf/Symbol.map
libexec/rtld-elf/rtld_lock.c
libexec/rtld-elf/rtld_lock.h