From 9327ec51d11855ec0ceac3ce1f4e0a75c8b57081 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 14 Jan 2005 01:32:56 +0000 Subject: r4728: split up server_services into: - stream_socket services the smb, ldap and rpc service which sets up a srtam socket end then waits for connections and - task services which this you can create a seperate task that do something (this is also going through the process_model subsystem so with -M standard a new process for this created with -M thread a new thread ... I'll add datagram services later when we whave support for datagram sockets in lib/socket/ see the next commit as an example for service_task's metze (This used to be commit d5fa02746c6569b09b6e05785642da2fad3ba3e0) --- source4/smbd/process_model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/smbd/process_model.c') diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c index ad9a26d377..f2abfd0a49 100644 --- a/source4/smbd/process_model.c +++ b/source4/smbd/process_model.c @@ -27,7 +27,7 @@ /* setup the events for the chosen process model */ -const struct model_ops *process_model_startup(const char *model) +const struct model_ops *process_model_startup(struct server_context *srv_ctx, const char *model) { const struct model_ops *ops; @@ -37,7 +37,7 @@ const struct model_ops *process_model_startup(const char *model) exit(-1); } - ops->model_startup(); + ops->model_init(srv_ctx); return ops; } -- cgit