summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-01-21 22:14:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:56 -0500
commit0c846b1b2db4054914a7275f9bff6155b68720b6 (patch)
treed02329cf5a40362448119affc081a831eadac351 /source4
parent00e553a272ed725b8297a5b0d8cb0091e167436e (diff)
downloadsamba-0c846b1b2db4054914a7275f9bff6155b68720b6.tar.gz
samba-0c846b1b2db4054914a7275f9bff6155b68720b6.tar.bz2
samba-0c846b1b2db4054914a7275f9bff6155b68720b6.zip
r20940: allow SA_SIGINFO signals to be oneshot. Why you would ever want this
is beyond me :-) (This used to be commit e892cbdb4bb0779f8abb0902bee4a2e79456808d)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/events/events_signal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/events/events_signal.c b/source4/lib/events/events_signal.c
index ace5e4b4bf..28702cecc9 100644
--- a/source4/lib/events/events_signal.c
+++ b/source4/lib/events/events_signal.c
@@ -249,6 +249,9 @@ int common_event_check_signal(struct event_context *ev)
sigaddset(&set, i);
sigprocmask(SIG_UNBLOCK, &set, NULL);
}
+ if (se->sa_flags & SA_RESETHAND) {
+ talloc_free(se);
+ }
continue;
}
#endif