chiark / gitweb /
util: simplify proc_cmdline() to reuse get_process_cmdline()
[elogind.git] / src / debug-generator / debug-generator.c
index fd7c29d28f0bc2e39ac24cf7618bd8f6dfc97341..5bbcd8fca72be98be5d1923d49e3ddd4d644fcfc 100644 (file)
@@ -150,8 +150,9 @@ int main(int argc, char *argv[]) {
 
         umask(0022);
 
-        if (parse_proc_cmdline(parse_proc_cmdline_item) < 0)
-                return EXIT_FAILURE;
+        r = parse_proc_cmdline(parse_proc_cmdline_item);
+        if (r < 0)
+                log_warning("Failed to parse kernel command line, ignoring: %s", strerror(-r));
 
         if (arg_debug_shell) {
                 r = strv_extend(&arg_wants, "debug-shell.service");