This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-272-g6b5189e


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  6b5189eb2000761cd68c3c54c0d03357a9aaec67 (commit)
      from  49051f8ea4551229fa656eba04031af51a5491c5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6b5189eb2000761cd68c3c54c0d03357a9aaec67

commit 6b5189eb2000761cd68c3c54c0d03357a9aaec67
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Nov 27 16:02:26 2014 +0000

    Avoid deprecated sigblock in misc/tst-pselect.c.
    
    misc/tst-pselect.c uses the deprecated sigblock interface, resulting
    in "tst-pselect.c:42:3: warning: 'sigblock' is deprecated (declared at
    ../signal/signal.h:189) [-Wdeprecated-declarations]".  The choice of
    sigblock rather than sigprocmask has nothing to do with what this test
    is testing, so this patch changes it to use sigprocmask to avoid the
    warning.
    
    Tested for x86_64.
    
    	* misc/tst-pselect.c (do_test): Use sigprocmask instead of
    	sigblock.

diff --git a/ChangeLog b/ChangeLog
index 7fdc85d..e0313b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
 
+	* misc/tst-pselect.c (do_test): Use sigprocmask instead of
+	sigblock.
+
 	* libio/bug-ungetwc1.c (do_test): Verify results of getwc and
 	feof.
 
diff --git a/misc/tst-pselect.c b/misc/tst-pselect.c
index 36bc46d..095d794 100644
--- a/misc/tst-pselect.c
+++ b/misc/tst-pselect.c
@@ -39,9 +39,12 @@ do_test (void)
       return 1;
     }
 
-  if (sigblock (sigmask (SIGUSR1)) != 0)
+  sigset_t ss_usr1;
+  sigemptyset (&ss_usr1);
+  sigaddset (&ss_usr1, SIGUSR1);
+  if (sigprocmask (SIG_BLOCK, &ss_usr1, NULL) != 0)
     {
-      puts ("sigblock failed");
+      puts ("sigprocmask failed");
       return 1;
     }
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    3 +++
 misc/tst-pselect.c |    7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]