summaryrefslogtreecommitdiff
path: root/source3/lib/smbldap_util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-05 19:14:45 -0800
committerJeremy Allison <jra@samba.org>2010-02-05 22:17:54 -0800
commit5dbf175c75bd6139f3238f36665000641f7f7f79 (patch)
tree8d2d22ebed4f78f75bce96491efc8b1edf8ae3ab /source3/lib/smbldap_util.c
parentdd498d2eecf124a03b6117ddab892a1112f9e9db (diff)
downloadsamba-5dbf175c75bd6139f3238f36665000641f7f7f79.tar.gz
samba-5dbf175c75bd6139f3238f36665000641f7f7f79.tar.bz2
samba-5dbf175c75bd6139f3238f36665000641f7f7f79.zip
s3-events: make the old timed events compatible with tevent
tevent ensures that a timed event is only called once. The old events code relied on the called handler removing the event itself. If the handler removed the event after calling a function which invoked the event loop then the timed event could loop forever. This change makes the two timed event systems more compatible, by allowing the handler to free the te if it wants to, but ensuring it is off the linked list of events before the handler is called, and ensuring it is freed even if the handler doesn't free it.
Diffstat (limited to 'source3/lib/smbldap_util.c')
0 files changed, 0 insertions, 0 deletions