]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ia64: Remove sigprocmask/sigblock objects from libpthread
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 13 Mar 2020 19:10:08 +0000 (19:10 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 21 Apr 2020 17:01:58 +0000 (14:01 -0300)
It is required because __libc_unwind_longjmp (used on thread
cancellation) calls __sigprocmask.  Replace with a direct call.

They are required because __libc_unwind_longjmp (used for thread
cancellation) calls __sigprocmask.  Replace this with a direct call.

The sigblock function is not exported and is not used internally, so
it can be removed.

Checked on cross build for ia64-linux-gnu.

sysdeps/ia64/nptl/Makefile
sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c

index b7d87c37c88d3acab6aa02608ff52a4ad38546b5..d34cb27699e54232ee120776bbadd1431b7ca84e 100644 (file)
@@ -20,6 +20,6 @@ gen-as-const-headers += tcb-offsets.sym
 endif
 
 ifeq ($(subdir),nptl)
-libpthread-routines += sysdep sigblock sigprocmask
-libpthread-shared-only-routines += sysdep sigblock sigprocmask
+libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
index 93d1d66dd01bad7f3621f2a199c1d5e161e6215b..d9ed94296399fdc47a93d46064ceb8e0835964d7 100644 (file)
@@ -34,8 +34,7 @@ __libc_unwind_longjmp (sigjmp_buf env, int val)
 
   if (env[0].__mask_was_saved)
     /* Restore the saved signal mask.  */
-    (void) __sigprocmask (SIG_SETMASK, &env[0].__saved_mask,
-                         (sigset_t *) NULL);
+    __libc_signal_restore_set (&env[0].__saved_mask);
 
   /* Call the machine-dependent function to restore machine state.  */
   __sigstack_longjmp (env[0].__jmpbuf, val ?: 1);