X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind.c;h=4b040e7a74dd184053c39861967072a803d3e406;hp=774fd69dd8a6376921c735137285e64a6d7ea8c5;hb=6b1c5e6d152a584896d71a3d9ad4d3f417050045;hpb=3d07573e091abc3dbd8f31070e118e91679c1b82 diff --git a/src/login/logind.c b/src/login/logind.c index 774fd69dd..4b040e7a7 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -36,7 +36,7 @@ #include "def.h" #include "dirent-util.h" #include "fd-util.h" -#include "formats-util.h" +#include "format-util.h" #include "logind.h" #include "selinux-util.h" #include "signal-util.h" @@ -73,7 +73,7 @@ static void manager_reset_config(Manager *m) { m->idle_action = HANDLE_IGNORE; m->runtime_dir_size = physical_memory_scale(10U, 100U); /* 10% */ - m->user_tasks_max = system_tasks_max_scale(33U, 100U); /* 33% */ + m->user_tasks_max = system_tasks_max_scale(DEFAULT_USER_TASKS_MAX_PERCENTAGE, 100U); /* 33% */ m->sessions_max = 8192; m->inhibitors_max = 8192; @@ -1046,11 +1046,11 @@ static int manager_parse_config_file(Manager *m) { #if 0 /// elogind parses its own config file assert(m); - return config_parse_many(PKGSYSCONFDIR "/logind.conf", - CONF_PATHS_NULSTR("systemd/logind.conf.d"), - "Login\0", - config_item_perf_lookup, logind_gperf_lookup, - false, m); + return config_parse_many_nulstr(PKGSYSCONFDIR "/logind.conf", + CONF_PATHS_NULSTR("systemd/logind.conf.d"), + "Login\0", + config_item_perf_lookup, logind_gperf_lookup, + false, m); #else const char* logind_conf = getenv("ELOGIND_CONF_FILE"); @@ -1208,15 +1208,12 @@ int main(int argc, char *argv[]) { log_set_target(LOG_TARGET_AUTO); log_set_facility(LOG_AUTH); log_parse_environment(); - #ifdef ENABLE_DEBUG_ELOGIND log_set_max_level(LOG_DEBUG); log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); #endif // ENABLE_DEBUG_ELOGIND - log_open(); - umask(0022); if (argc != 1) {