smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb tree
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Apr 2008 23:50:13 +0000 (01:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Apr 2008 12:43:07 +0000 (14:43 +0200)
metze
(This used to be commit 16d295d466eb18e3bccce6fb26d53012d5f2c3e8)

source3/smbd/server.c

index b71d6271f2555332328d765acc44e4bc12a804e8..108a55033c0b3e13d0caa1b586c65e7bc9f6c46c 100644 (file)
@@ -1344,8 +1344,10 @@ extern void build_options(bool screen);
           smbd is launched via inetd and we fork a copy of 
           ourselves here */
 
-       if ( is_daemon && !interactive )
-               start_background_queue(); 
+       if (is_daemon && !interactive
+           && lp_parm_bool(-1, "smbd", "backgroundqueue", true)) {
+               start_background_queue();
+       }
 
        if (!open_sockets_smbd(is_daemon, interactive, ports))
                exit(1);