* 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,
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++) {
"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;
}
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 ||