diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-25 18:32:28 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-25 18:32:28 +0200 |
commit | 02802fafcf6e11ea3f998f685035ffe568dfddeb (patch) | |
tree | 2db187fc4bd2ef24a0c70c573b278a5e7ece62e5 /nptl/tst-exec4.c | |
parent | de42613540de8d3d70b5f14a14923cab7bd694d0 (diff) | |
download | glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.zip glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.tar.gz glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.tar.bz2 |
signal: Deprecate additional legacy signal handling functions
This needs a few test adjustments: In some cases, sigignore was
used for convenience (replaced with xsignal with SIG_IGN). Tests
for the deprecated functions need to disable
-Wdeprecated-declarations, and for the sigmask deprecation,
-Wno-error.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/tst-exec4.c')
-rw-r--r-- | nptl/tst-exec4.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nptl/tst-exec4.c b/nptl/tst-exec4.c index cf59982..2f32389 100644 --- a/nptl/tst-exec4.c +++ b/nptl/tst-exec4.c @@ -22,17 +22,13 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> - +#include <support/xsignal.h> static void * tf (void *arg) { /* Ignore SIGUSR1 and block SIGUSR2. */ - if (sigignore (SIGUSR1) != 0) - { - puts ("sigignore failed"); - exit (1); - } + xsignal (SIGUSR1, SIG_IGN); sigset_t ss; sigemptyset (&ss); |