summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxhdrs/signal06.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs/signal06.c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/signal06.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/signal06.c b/c/src/tests/psxtests/psxhdrs/signal06.c
index ea02a2bdd1..d4738c52b7 100644
--- a/c/src/tests/psxtests/psxhdrs/signal06.c
+++ b/c/src/tests/psxtests/psxhdrs/signal06.c
@@ -24,5 +24,16 @@ void test( void )
signal_number = SIGALRM;
+ /*
+ * Really should not reference sa_handler and sa_signction simultaneously.
+ */
+
+ act.sa_handler = SIG_DFL;
+ act.sa_handler = SIG_IGN;
+ act.sa_mask = 0;
+ act.sa_flags = SA_NOCLDSTOP;
+ act.sa_flags = SA_SIGINFO;
+ act.sa_sigaction = NULL;
+
result = sigaction( signal_number, &act, &oact );
}