Skip to content

Commit

Permalink
Fix nptl/tst-kill5 not to presume SIGRTMAX exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Feb 6, 2015
1 parent ca0e067 commit ebf7d6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2015-02-06 Roland McGrath <roland@hack.frob.com>

* nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.

* nptl/tst-join5.c: Drop #include <sys/syscall.h>.
(wait_code): New function replaces macro.
Call nanosleep rather than syscall.
Expand Down
3 changes: 2 additions & 1 deletion nptl/tst-kill5.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>


int
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");
Expand Down

0 comments on commit ebf7d6e

Please sign in to comment.