Blame SOURCES/glibc-rh1505492-deprecated-1.patch

c6d234
commit 6b5189eb2000761cd68c3c54c0d03357a9aaec67
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Thu Nov 27 16:02:26 2014 +0000
c6d234
c6d234
    Avoid deprecated sigblock in misc/tst-pselect.c.
c6d234
    
c6d234
    misc/tst-pselect.c uses the deprecated sigblock interface, resulting
c6d234
    in "tst-pselect.c:42:3: warning: 'sigblock' is deprecated (declared at
c6d234
    ../signal/signal.h:189) [-Wdeprecated-declarations]".  The choice of
c6d234
    sigblock rather than sigprocmask has nothing to do with what this test
c6d234
    is testing, so this patch changes it to use sigprocmask to avoid the
c6d234
    warning.
c6d234
    
c6d234
    Tested for x86_64.
c6d234
    
c6d234
            * misc/tst-pselect.c (do_test): Use sigprocmask instead of
c6d234
            sigblock.
c6d234
c6d234
diff --git a/misc/tst-pselect.c b/misc/tst-pselect.c
c6d234
index 36bc46da6c94174a..095d794cb2735e18 100644
c6d234
--- a/misc/tst-pselect.c
c6d234
+++ b/misc/tst-pselect.c
c6d234
@@ -39,9 +39,12 @@ do_test (void)
c6d234
       return 1;
c6d234
     }
c6d234
 
c6d234
-  if (sigblock (sigmask (SIGUSR1)) != 0)
c6d234
+  sigset_t ss_usr1;
c6d234
+  sigemptyset (&ss_usr1);
c6d234
+  sigaddset (&ss_usr1, SIGUSR1);
c6d234
+  if (sigprocmask (SIG_BLOCK, &ss_usr1, NULL) != 0)
c6d234
     {
c6d234
-      puts ("sigblock failed");
c6d234
+      puts ("sigprocmask failed");
c6d234
       return 1;
c6d234
     }
c6d234