From 7a071625581af876f8fd73b35a70eccd0d838208 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 9 Aug 2011 16:44:52 -0400 Subject: s3-prefork: Fix use of child id. Children Ids must start at 1 as 0 represent the father. Also fix callbacks that restart logs to use a procedd global variable that holds the Id so that they work correctly both fot the parent process and the children. Signed-off-by: Andreas Schneider --- source3/lib/server_prefork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/server_prefork.c') diff --git a/source3/lib/server_prefork.c b/source3/lib/server_prefork.c index 54a0dbc171..501fbc1b88 100644 --- a/source3/lib/server_prefork.c +++ b/source3/lib/server_prefork.c @@ -121,7 +121,7 @@ bool prefork_create_pool(TALLOC_CTX *mem_ctx, pfp->pool[i].status = PF_WORKER_IDLE; ret = pfp->main_fn(ev_ctx, msg_ctx, - &pfp->pool[i], i, + &pfp->pool[i], i + 1, pfp->listen_fd_size, pfp->listen_fds, pfp->lock_fd, @@ -206,7 +206,7 @@ int prefork_add_children(struct tevent_context *ev_ctx, pfp->pool[i].status = PF_WORKER_IDLE; ret = pfp->main_fn(ev_ctx, msg_ctx, - &pfp->pool[i], i, + &pfp->pool[i], i + 1, pfp->listen_fd_size, pfp->listen_fds, pfp->lock_fd, -- cgit