tevent: added tevent_re_initialise()
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2010 10:13:27 +0000 (21:13 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2010 10:13:27 +0000 (21:13 +1100)
commit5609c504337b79fd6f521c42b414c650b23d0c9a
tree114e356f3f60c2abb73fadcf42593a389100bb8e
parent525a4fb2c423dbbeeb1e6da3254f334044b7bd7f
tevent: added tevent_re_initialise()

This allows us to re-initialise a tevent context without destroying
the pointer. That means that if someone keeps a long term ptr to the
event context across a fork it will still work.

This also brings the memory handling in single and standard process
models much closer together, which means less bugs that we don't find
with make test.
lib/tevent/tevent.c
lib/tevent/tevent.h