s3: Fix clear_if_first for the async echo handler
authorVolker Lendecke <vl@samba.org>
Thu, 6 Dec 2012 14:51:55 +0000 (15:51 +0100)
committerChristian Ambach <ambi@samba.org>
Fri, 7 Dec 2012 10:29:36 +0000 (11:29 +0100)
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 <ambi@samba.org>
Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Fri Dec  7 11:29:36 CET 2012 on sn-devel-104

source3/smbd/process.c

index eeda6f99f22e1b9404bac2d913d5329fbf15d35c..f89ca02aeaeebc318f63d5aa24f378a59771734f 100644 (file)
@@ -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)));