]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix smbd -i
authorVolker Lendecke <vl@samba.org>
Thu, 22 Mar 2012 13:23:11 +0000 (14:23 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 22 Mar 2012 17:40:02 +0000 (18:40 +0100)
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104

source3/smbd/server.c

index 9cc88d4d1a4df6667077ac37050e13aa141ca3c9..ef3f140f78e2db551434ee070c6d7eba5f27be14 100644 (file)
@@ -1231,15 +1231,17 @@ extern void build_options(bool screen);
                exit(1);
        }
 
-       /*
-        * Do not initialize the parent-child-pipe before becoming
-        * a daemon: this is used to detect a died parent in the child
-        * process.
-        */
-       status = init_before_fork();
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, ("init_before_fork failed: %s\n", nt_errstr(status)));
-               exit(1);
+       if (!interactive) {
+               /*
+                * Do not initialize the parent-child-pipe before becoming a
+                * daemon: this is used to detect a died parent in the child
+                * process.
+                */
+               status = init_before_fork();
+               if (!NT_STATUS_IS_OK(status)) {
+                       DEBUG(0, ("init_before_fork failed: %s\n", nt_errstr(status)));
+                       exit(1);
+               }
        }
 
        smbd_server_conn->msg_ctx = msg_ctx;