mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
290db09546
Some Linux interfaces never restart after being interrupted by a signal handler, regardless of the use of SA_RESTART [1]. It means that for pthread cancellation, if the target thread disables cancellation with pthread_setcancelstate and calls such interfaces (like poll or select), it should not see spurious EINTR failures due the internal SIGCANCEL. However recent changes made pthread_cancel to always sent the internal signal, regardless of the target thread cancellation status or type. To fix it, the previous semantic is restored, where the cancel signal is only sent if the target thread has cancelation enabled in asynchronous mode. The cancel state and cancel type is moved back to cancelhandling and atomic operation are used to synchronize between threads. The patch essentially revert the following commits: |
||
---|---|---|
.. | ||
bits | ||
sys | ||
_Fork.c | ||
aio_misc.h | ||
dl-mutex.c | ||
dl-thread_gscope_wait.c | ||
dl-tls_init_tp.c | ||
dl-tunables.list | ||
fork.h | ||
futex-internal.h | ||
gai_misc.h | ||
Implies | ||
internaltypes.h | ||
jmp-unwind.c | ||
libc_start_call_main.h | ||
libc-lock.h | ||
libc-lockP.h | ||
lowlevellock-futex.h | ||
lowlevellock.h | ||
Makeconfig | ||
Makefile | ||
malloc-machine.h | ||
proc_service.h | ||
pthread_atfork_compat.h | ||
pthread_early_init.h | ||
pthread_mutex_conf.h | ||
pthread-offsets.h | ||
pthread.h | ||
pthreadP.h | ||
setxid.h | ||
stdio-lock.h | ||
Subdirs | ||
tcb-offsets.h | ||
thread_db.h | ||
timer_routines.h | ||
tst-mqueue8x.c |