waf: Remove build system info (uname -a)
[metze/samba/wip.git] / source4 / smbd / server.c
index 006f76bc8599ddcbc01f197b6014189381ba91dd..431fbad31390cf6693274419cb5f0b0ec1bde3b4 100644 (file)
@@ -133,12 +133,10 @@ static void sig_term(int sig)
                 * We're the process group leader, send
                 * SIGTERM to our process group.
                 */
-               DBG_ERR("SIGTERM: killing children\n");
                kill(-getpgrp(), SIGTERM);
        }
 #endif
-       DBG_ERR("Exiting pid %d on SIGTERM\n", (int)getpid());
-       exit(127);
+       _exit(127);
 }
 
 static void sigterm_signal_handler(struct tevent_context *ev,
@@ -325,9 +323,6 @@ static void show_build(void)
 
        printf("Samba version: %s\n", SAMBA_VERSION_STRING);
        printf("Build environment:\n");
-#ifdef BUILD_SYSTEM
-       printf("   Build host:  %s\n", BUILD_SYSTEM);
-#endif
 
        printf("Paths:\n");
        for (i=0; config_options[i].name; i++) {
@@ -450,7 +445,7 @@ static int binary_smbd_main(const char *binary_name,
                        "not allowed together with -D|--daemon\n\n");
                poptPrintUsage(pc, stderr, 0);
                return 1;
-       } else if (!opt_interactive && !opt_fork) {
+       } else if (!opt_interactive && opt_fork) {
                /* default is --daemon */
                opt_daemon = true;
        }
@@ -470,7 +465,7 @@ static int binary_smbd_main(const char *binary_name,
                binary_name,
                SAMBA_VERSION_STRING));
        DEBUGADD(0,("Copyright Andrew Tridgell and the Samba Team"
-               " 1992-2017\n"));
+               " 1992-2018\n"));
 
        if (sizeof(uint16_t) < 2 ||
                        sizeof(uint32_t) < 4 ||