From 5573d049414d75e9991d53627235cafefbe67470 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Mar 2010 10:42:41 +1100 Subject: s4-messaging: use auto-close on the socket --- source4/lib/messaging/messaging.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/messaging') diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index c507eb63b1..3850bcbc49 100644 --- 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); -- cgit