mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
make check more portable, patch by Matthew Emmerton
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1730
This commit is contained in:
parent
0b292b9ff6
commit
c3eadece35
@ -17,18 +17,19 @@ main (void)
|
||||
struct sigaction sa;
|
||||
|
||||
int i;
|
||||
int rc;
|
||||
for (i = 1; i <= 65; i++) {
|
||||
sa.sa_flags = 0;
|
||||
sigemptyset( &sa.sa_mask );
|
||||
sa.sa_handler = abend;
|
||||
errno = 0;
|
||||
fprintf(stderr,"setting signal %d: ", i);
|
||||
sigaction (i /*SIGKILL*/, &sa, NULL);
|
||||
perror ("");
|
||||
errno = 0;
|
||||
rc = sigaction (i /*SIGKILL*/, &sa, NULL);
|
||||
if (rc) perror ("");
|
||||
else fprintf(stderr,"Success\n");
|
||||
fprintf(stderr,"getting signal %d: ", i);
|
||||
sigaction (i /*SIGKILL*/, NULL, &sa);
|
||||
perror ("");
|
||||
rc = sigaction (i /*SIGKILL*/, NULL, &sa);
|
||||
if (rc) perror ("");
|
||||
else fprintf(stderr,"Success\n");
|
||||
fprintf(stderr,"\n");
|
||||
}
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user