From a3dc8f71d27bf8e419aaf778dbfbb7faacdf9e74 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 21 Jun 2011 14:07:25 +0200 Subject: s3-smbd: Pass ev_ctx to smbd_parent_loop(). --- source3/smbd/server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 55935f851f..efe0e9a5e3 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -791,7 +791,8 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent, return true; } -static void smbd_parent_loop(struct smbd_parent_context *parent) +static void smbd_parent_loop(struct tevent_context *ev_ctx, + struct smbd_parent_context *parent) { /* now accept incoming connections - forking a new process for each incoming connection */ @@ -800,7 +801,7 @@ static void smbd_parent_loop(struct smbd_parent_context *parent) int ret; TALLOC_CTX *frame = talloc_stackframe(); - ret = tevent_loop_once(server_event_context()); + ret = tevent_loop_once(ev_ctx); if (ret != 0) { exit_server_cleanly("tevent_loop_once() error"); } @@ -1294,7 +1295,7 @@ extern void build_options(bool screen); /* make sure we always have a valid stackframe */ frame = talloc_stackframe(); - smbd_parent_loop(parent); + smbd_parent_loop(ev_ctx, parent); exit_server_cleanly(NULL); TALLOC_FREE(frame); -- cgit