]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/bus-unit-procs.c
systemctl: emit warning when we get an invalid process entry from pid1 and continue
[thirdparty/systemd.git] / src / shared / bus-unit-procs.c
index aeba2ebfd399ea1a9be14c070acbb862fc6e1104..054a1410acc564a7066ca3bd682b99d4d3e6e809 100644 (file)
@@ -387,8 +387,11 @@ int unit_show_processes(
                         break;
 
                 r = add_process(cgroups, path, pid, name);
-                if (r < 0)
+                if (r == -ENOMEM)
                         goto finish;
+                if (r < 0)
+                        log_warning_errno(r, "Invalid process description in GetUnitProcesses reply: cgroup=\"%s\" pid="PID_FMT" command=\"%s\", ignoring: %m",
+                                          path, pid, name);
         }
 
         r = sd_bus_message_exit_container(reply);