git: pthreads - Fix incorrect fork assumption

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Nov 12 14:46:20 PST 2019


commit 4cc8110f35d13e1cd8c5a8a60545103789ba3988
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Nov 12 14:45:09 2019 -0800

    pthreads - Fix incorrect fork assumption
    
    * libthread_xu assumed that the forked child process's TID would be 1,
      but that is no longer the case.
    
    * Fix the assumption and correct some comments while we are here.
    
    Reported-by: zrj

Summary of changes:
 lib/libthread_xu/thread/thr_fork.c    | 2 +-
 lib/libthread_xu/thread/thr_mutex.c   | 4 ++--
 lib/libthread_xu/thread/thr_private.h | 2 +-
 lib/libthread_xu/thread/thr_umtx.c    | 3 ---
 lib/libthread_xu/thread/thr_umtx.h    | 3 ---
 5 files changed, 4 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4cc8110f35d13e1cd8c5a8a60545103789ba3988


-- 
DragonFly BSD source repository


More information about the Commits mailing list