]> sourceware.org Git - glibc.git/commit
nptl: Perform signal initialization upon pthread_create
authorFlorian Weimer <fweimer@redhat.com>
Fri, 21 May 2021 20:35:00 +0000 (22:35 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 21 May 2021 20:35:00 +0000 (22:35 +0200)
commit2f69522d460611b1018e15df6c238dda2d8d6609
tree1e7a59afe9de337ad58dfdebab4502794db51732
parent06a36b70f946548d7bc5bc1b163d1ecf877da071
nptl: Perform signal initialization upon pthread_create

Install signal handlers and unblock signals before pthread_create
creates the first thread.

create_thread in sysdeps/unix/sysv/linux/createthread.c can send
SIGCANCEL to the current thread, so the SIGCANCEL handler is currently
needed even if pthread_cancel is never called.  (The way timer_create
uses SIGCANCEL does not need a signal handler; both SIG_DFL and SIG_IGN
dispositions should work.)

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/Versions
nptl/nptl-init.c
nptl/pthreadP.h
nptl/pthread_cancel.c
nptl/pthread_create.c
This page took 0.044933 seconds and 5 git commands to generate.