From: Roland McGrath Date: Fri, 6 Feb 2015 20:22:23 +0000 (-0800) Subject: Fix nptl/tst-kill5 not to presume SIGRTMAX exists. X-Git-Tag: glibc-2.22~655 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf7d6eedb1969b03187398fe730cc03bdd9aae3;p=thirdparty%2Fglibc.git Fix nptl/tst-kill5 not to presume SIGRTMAX exists. --- diff --git a/ChangeLog b/ChangeLog index c28f7e542ed..4ca6759f424 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-02-06 Roland McGrath + * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10. + * nptl/tst-join5.c: Drop #include . (wait_code): New function replaces macro. Call nanosleep rather than syscall. diff --git a/nptl/tst-kill5.c b/nptl/tst-kill5.c index f16aae9512e..0717c039d9d 100644 --- a/nptl/tst-kill5.c +++ b/nptl/tst-kill5.c @@ -21,6 +21,7 @@ #include #include #include +#include int @@ -28,7 +29,7 @@ do_test (void) { /* XXX This test might require architecture and system specific changes. There is no guarantee that this signal number is invalid. */ - int e = pthread_kill (pthread_self (), SIGRTMAX + 10); + int e = pthread_kill (pthread_self (), INT_MAX); if (e == 0) { puts ("kill didn't failed");