URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
/* Check that TRT happens for an ignored catchable signal, single thread.
|
/* Check that TRT happens for an ignored catchable signal, single thread.
|
#xerror:
|
#xerror:
|
#output: Unimplemented signal: 14\n
|
#output: Unimplemented signal: 14\n
|
#output: program stopped with signal 4.\n
|
#output: program stopped with signal 4.\n
|
|
|
Sure, it'd probably be better to support signals in single-thread too,
|
Sure, it'd probably be better to support signals in single-thread too,
|
but that's on an as-need basis, and I don't have a need for it yet. */
|
but that's on an as-need basis, and I don't have a need for it yet. */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <sys/types.h>
|
#include <sys/types.h>
|
#include <signal.h>
|
#include <signal.h>
|
int main (void)
|
int main (void)
|
{
|
{
|
signal (SIGALRM, SIG_IGN);
|
signal (SIGALRM, SIG_IGN);
|
kill (getpid (), SIGALRM);
|
kill (getpid (), SIGALRM);
|
printf ("xyzzy\n");
|
printf ("xyzzy\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.