git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
792ab5c
)
lib/tevent: close pipe_fds on event_context destruction
author
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 28 Aug 2009 02:41:23 +0000
(12:11 +0930)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 9 Sep 2009 10:27:17 +0000
(12:27 +0200)
The "hack_fds" were never closed before; now they're inside event_context
they should be closed when that is destroyed.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit
76d91156c82e20bbd68c752376cb814d71759033
)
lib/tevent/tevent.c
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent.c
b/lib/tevent/tevent.c
index 3ce6e3e4777685d86232f86896a3152072e328e4..76a6ac1c97f0f6ccafef59997b2b5066183a795b 100644
(file)
--- a/
lib/tevent/tevent.c
+++ b/
lib/tevent/tevent.c
@@
-148,6
+148,8
@@
int tevent_common_context_destructor(struct tevent_context *ev)
if (ev->pipe_fde) {
talloc_free(ev->pipe_fde);
+ close(ev->pipe_fds[0]);
+ close(ev->pipe_fds[1]);
ev->pipe_fde = NULL;
}