s4-server: make server sockets a child of the task context
authorAndrew Tridgell <tridge@samba.org>
Sun, 14 Nov 2010 23:12:22 +0000 (10:12 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 14 Nov 2010 23:19:34 +0000 (10:19 +1100)
commitef7f4a142068757dcf0dc11c5b7cf03755be45a8
treed8e56b44df249b52da8d913f92293ac39d45be35
parentec590fc9e37c38891bdd10aaae5bac46f5e71f75
s4-server: make server sockets a child of the task context

We previously allocated sockets as direct children of the event
context. That led to crashes if a service called
task_server_terminate(), as it left the socket open and handling
events for a dead protocol.

Making them a child of the task allows the task to terminate and take
all its sockets with it.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
14 files changed:
source4/dns_server/dns_server.c
source4/ldap_server/ldap_server.c
source4/ntp_signd/ntp_signd.c
source4/rpc_server/dcerpc_server.c
source4/smb_server/service_smb.c
source4/smb_server/smb_samba3.c
source4/smb_server/smb_server.c
source4/smb_server/smb_server.h
source4/smbd/service_named_pipe.c
source4/smbd/service_stream.c
source4/torture/rpc/spoolss_notify.c
source4/web_server/web_server.c
source4/winbind/wb_server.c
source4/wrepl_server/wrepl_in_connection.c