1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

s3-prefork: Pass the child a child_id

Signed-off-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Simo Sorce 2011-08-05 10:34:05 -04:00 committed by Andreas Schneider
parent 0de09289ae
commit fa893e815b
3 changed files with 4 additions and 2 deletions

View File

@ -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],
&pfp->pool[i], i,
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],
&pfp->pool[i], i,
pfp->listen_fd_size,
pfp->listen_fds,
pfp->lock_fd,

View File

@ -76,6 +76,7 @@ struct pf_worker_data {
typedef int (prefork_main_fn_t)(struct tevent_context *ev,
struct messaging_context *msg_ctx,
struct pf_worker_data *pf,
int child_id,
int listen_fd_size,
int *listen_fds,
int lock_fd,

View File

@ -359,6 +359,7 @@ static void spoolss_next_client(void *pvt);
static int spoolss_children_main(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx,
struct pf_worker_data *pf,
int child_id,
int listen_fd_size,
int *listen_fds,
int lock_fd,