diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/signal06.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal06.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/signal06.c b/testsuites/psxtests/psxhdrs/signal06.c index ea02a2bdd1..d4738c52b7 100644 --- a/testsuites/psxtests/psxhdrs/signal06.c +++ b/testsuites/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 ); } |