X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmain.c;h=7b5c86161fe512525c5e947faf34c936b5c954d1;hb=2b43f939a4b3ad5aeb2650868b0234ff42ec0045;hp=6e8f21a290b33d50017cf33c6056226dbbf6fa5b;hpb=8b8ffe6828c97c82870cfd30c647fa269964810f;p=elogind.git diff --git a/src/core/main.c b/src/core/main.c index 6e8f21a29..7b5c86161 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -727,12 +727,13 @@ static int parse_proc_cmdline(void) { } r = parse_proc_cmdline_word(word); - free(word); - if (r < 0) { log_error("Failed on cmdline argument %s: %s", word, strerror(-r)); + free(word); goto finish; } + + free(word); } r = 0; @@ -1304,12 +1305,13 @@ int main(int argc, char *argv[]) { } /* By default, mount "cpu" and "cpuacct" together */ - arg_join_controllers = new(char**, 2); + arg_join_controllers = new(char**, 3); if (!arg_join_controllers) goto finish; - arg_join_controllers[0] = strv_new("cpu", "cpuacct", NULL); - arg_join_controllers[1] = NULL; + arg_join_controllers[0] = strv_new("cpu", "cpuacct", "cpuset", NULL); + arg_join_controllers[1] = strv_new("net_cls", "netprio", NULL); + arg_join_controllers[2] = NULL; if (!arg_join_controllers[0]) goto finish; @@ -1512,7 +1514,7 @@ int main(int argc, char *argv[]) { if (prctl(PR_SET_CHILD_SUBREAPER, 1) < 0) { log_warning("Failed to make us a subreaper: %m"); if (errno == EINVAL) - log_info("Perhaps the kernel version is too old (< 3.3?)"); + log_info("Perhaps the kernel version is too old (< 3.4?)"); } }