From 0fa31296864cd2b0c64c33ac74d55178ad542f90 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 6 Dec 2012 15:51:55 +0100 Subject: [PATCH] s3: Fix clear_if_first for the async echo handler A worker smbd is as not long-lived as the main smbd, but as the async echo handler exits when the worker smbd does, passing "true" here is the right thing to do and fixes our clear_if_first handling when the async echo handler is active. Reviewed-by: Christian Ambach Autobuild-User(master): Christian Ambach Autobuild-Date(master): Fri Dec 7 11:29:36 CET 2012 on sn-devel-104 --- source3/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index eeda6f99f22..f89ca02aeae 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3068,7 +3068,7 @@ bool fork_echo_handler(struct smbd_server_connection *sconn) status = reinit_after_fork(sconn->msg_ctx, sconn->ev_ctx, - false); + true); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("reinit_after_fork failed: %s\n", nt_errstr(status))); -- 2.11.4.GIT