diff options
author | Stefan Metzmacher <metze@samba.org> | 2015-05-18 13:25:33 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2015-06-20 20:51:15 +0200 |
commit | 9a65763db77f96793be43e4a0a92a8a821831f08 (patch) | |
tree | 099f76e447fda03d2095eb575f48f1fcc1c348e4 /lib | |
parent | 282802f2f0aea30eaab05e4ca2f6841f394c08e1 (diff) | |
download | samba-9a65763db77f96793be43e4a0a92a8a821831f08.tar.gz |
tevent: add a note to tevent_add_fd()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11141
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 33ca0179ac091c8bb1c2b3fa7999cc5047d09a80)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tevent/tevent.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index c54cbe21336..6861ffbbfd4 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -176,6 +176,11 @@ void tevent_set_default_backend(const char *backend); * * @note To cancel the monitoring of a file descriptor, call talloc_free() * on the object returned by this function. + * + * @note The caller should avoid closing the file descriptor before + * calling talloc_free()! Otherwise the behaviour is undefined which + * might result in crashes. See https://bugzilla.samba.org/show_bug.cgi?id=11141 + * for an example. */ struct tevent_fd *tevent_add_fd(struct tevent_context *ev, TALLOC_CTX *mem_ctx, |