summaryrefslogtreecommitdiff
path: root/lib/tevent/testsuite.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-08-01 11:49:10 -0700
committerJeremy Allison <jra@samba.org>2011-08-01 22:03:45 +0200
commit0c67efdd68b9808542c090b9fd9920e4e37d85d0 (patch)
treee3d1a5a37f072940692ef8182e5a763f260c8f94 /lib/tevent/testsuite.c
parent7585057a22beda5bac2b98c7488e994880927daf (diff)
downloadsamba-0c67efdd68b9808542c090b9fd9920e4e37d85d0.tar.gz
samba-0c67efdd68b9808542c090b9fd9920e4e37d85d0.tar.bz2
samba-0c67efdd68b9808542c090b9fd9920e4e37d85d0.zip
Fix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_signal.c
Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/tevent/testsuite.c')
-rw-r--r--lib/tevent/testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c
index 991e161733..1e2f25afb0 100644
--- a/lib/tevent/testsuite.c
+++ b/lib/tevent/testsuite.c
@@ -101,7 +101,9 @@ static bool test_event_context(struct torture_context *test,
#ifdef SA_RESTART
se1 = event_add_signal(ev_ctx, ev_ctx, SIGALRM, SA_RESTART, count_handler, &alarm_count);
#endif
+#ifdef SA_RESETHAND
se2 = event_add_signal(ev_ctx, ev_ctx, SIGALRM, SA_RESETHAND, count_handler, &alarm_count);
+#endif
#ifdef SA_SIGINFO
se3 = event_add_signal(ev_ctx, ev_ctx, SIGUSR1, SA_SIGINFO, count_handler, &info_count);
#endif