Package: glibc / 2.28-10

arm/local-sigaction.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
 sysdeps/unix/sysv/linux/arm/sigaction.c |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

--- a/sysdeps/unix/sysv/linux/arm/sigaction.c
+++ b/sysdeps/unix/sysv/linux/arm/sigaction.c
@@ -22,15 +22,10 @@ extern void __default_rt_sa_restorer (void);
 
 #define SET_SA_RESTORER(kact, act)				\
  ({								\
-   if ((kact)->sa_flags & SA_RESTORER)				\
-     (kact)->sa_restorer = (act)->sa_restorer;			\
-   else								\
-     {								\
-       (kact)->sa_restorer = ((kact)->sa_flags & SA_SIGINFO)	\
-			     ? __default_rt_sa_restorer		\
-			     : __default_sa_restorer;		\
-       (kact)->sa_flags |= SA_RESTORER;				\
-     }								\
+   (kact)->sa_restorer = ((kact)->sa_flags & SA_SIGINFO)	\
+			 ? __default_rt_sa_restorer		\
+			 : __default_sa_restorer;		\
+   (kact)->sa_flags |= SA_RESTORER;				\
  })
 
 #define RESET_SA_RESTORER(act, kact)				\