diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | misc/tst-pselect.c | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -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 36bc46da6c..095d794cb2 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; } |