git: pthreads: Use sticky version in pthread_is_threaded_np().

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Tue Dec 15 21:12:32 PST 2020


commit 537c87620d0fb18c81f7a9c14afb7b25a1627fcf
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Dec 15 06:30:15 2020 +0000

    pthreads: Use sticky version in pthread_is_threaded_np().
    
     It was observed that several applications have undefined behaviour if
     they become implicitly threaded at runtime (e.g. locale libraries).
     This allows to check status to avoid issues in applications calling
     sigprocmask() and fork() without immediate exec().

Summary of changes:
 lib/libthread_xu/thread/thr_isthreaded_np.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/537c87620d0fb18c81f7a9c14afb7b25a1627fcf


-- 
DragonFly BSD source repository



More information about the Commits mailing list