chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: simplify proc_cmdline() to reuse get_process_cmdline()
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index d48604e6739330f80a23d83822d16a864cc1c615..56a1f6193c974d2316fd93b784b7bf7768e166e2 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-1402,9
+1402,11
@@
int main(int argc, char *argv[]) {
if (parse_config_file() < 0)
goto finish;
if (parse_config_file() < 0)
goto finish;
- if (arg_running_as == SYSTEMD_SYSTEM)
- if (parse_proc_cmdline(parse_proc_cmdline_item) < 0)
- goto finish;
+ if (arg_running_as == SYSTEMD_SYSTEM) {
+ r = parse_proc_cmdline(parse_proc_cmdline_item);
+ if (r < 0)
+ log_warning("Failed to parse kernel command line, ignoring: %s", strerror(-r));
+ }
/* Note that this also parses bits from the kernel command
* line, including "debug". */
/* Note that this also parses bits from the kernel command
* line, including "debug". */