diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-05 10:42:41 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-03-05 11:54:36 +1100 |
commit | 5573d049414d75e9991d53627235cafefbe67470 (patch) | |
tree | cc685419171252efcd4257c87879350fa332e13b /source4/lib/messaging | |
parent | cb06eee86af1839996e9298ad4612d4a4f7865cc (diff) | |
download | samba-5573d049414d75e9991d53627235cafefbe67470.tar.gz samba-5573d049414d75e9991d53627235cafefbe67470.tar.bz2 samba-5573d049414d75e9991d53627235cafefbe67470.zip |
s4-messaging: use auto-close on the socket
Diffstat (limited to 'source4/lib/messaging')
-rw-r--r-- | source4/lib/messaging/messaging.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |