git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb06eee
)
s4-messaging: use auto-close on the socket
author
Andrew Tridgell
<tridge@samba.org>
Thu, 4 Mar 2010 23:42:41 +0000
(10:42 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 5 Mar 2010 00:54:36 +0000
(11:54 +1100)
source4/lib/messaging/messaging.c
patch
|
blob
|
history
diff --git
a/source4/lib/messaging/messaging.c
b/source4/lib/messaging/messaging.c
index c507eb63b1646b25bc0afe87111b03fe2c1f07fd..3850bcbc4918cad462463c6bca82bc41c909bac8 100644
(file)
--- a/
source4/lib/messaging/messaging.c
+++ b/
source4/lib/messaging/messaging.c
@@
-608,6
+608,7
@@
struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
msg->event.ev = ev;
msg->event.fde = event_add_fd(ev, msg, socket_get_fd(msg->sock),
EVENT_FD_READ, messaging_handler, msg);
+ tevent_fd_set_auto_close(msg->event.fde);
talloc_set_destructor(msg, messaging_destructor);