diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-04 17:48:51 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-04 17:48:51 +1100 |
commit | 23d681caf9c1186999ac676d70a1eb0e8a43e358 (patch) | |
tree | fcadf2e7606ce18623621f64d1ff175f3f3c6174 /source4/smbd | |
parent | cbca41597e0829ee0b1535b2902696a448373045 (diff) | |
download | samba-23d681caf9c1186999ac676d70a1eb0e8a43e358.tar.gz samba-23d681caf9c1186999ac676d70a1eb0e8a43e358.tar.bz2 samba-23d681caf9c1186999ac676d70a1eb0e8a43e358.zip |
Rework service init functions to pass down service name. This is
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/service_task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smbd/service_task.c b/source4/smbd/service_task.c index 08588464cc..2274685059 100644 --- a/source4/smbd/service_task.c +++ b/source4/smbd/service_task.c @@ -85,6 +85,7 @@ static void task_server_callback(struct event_context *event_ctx, */ NTSTATUS task_server_startup(struct event_context *event_ctx, struct loadparm_context *lp_ctx, + const char *service_name, const struct model_ops *model_ops, void (*task_init)(struct task_server *)) { @@ -96,7 +97,7 @@ NTSTATUS task_server_startup(struct event_context *event_ctx, state->task_init = task_init; state->model_ops = model_ops; - model_ops->new_task(event_ctx, lp_ctx, task_server_callback, state); + model_ops->new_task(event_ctx, lp_ctx, service_name, task_server_callback, state); return NT_STATUS_OK; } |