On Wed, 2012-08-15 at 15:56 +0200, Jakub Hrozek wrote: > > I wouldn't expect tevent_req_post to be called in any other function > that *_send. Also checking the SSSD code shows that we only call > tevent_req_post from *_send elsewhere.
This is a mandatory part of the tevent_req style. tevent_req_post() is only ever safe during a _send() function. Once the code re-enters the mainloop, you must never call tevent_req_post(). To that end, we only allow _send() functions to call it. The problem would be if you reused a function later, you might call tevent_req_post() after re-entering the mainloop, and then all sorts of things will break. It's happened before.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/sssd-devel