]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
process-util: show requested process name in the log
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Feb 2023 16:26:39 +0000 (01:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Feb 2023 03:17:52 +0000 (12:17 +0900)
This is useful for debugging issues like #26474.

src/basic/process-util.c

index be82d0ffe71fab65a8ded2ff316fde946c0ff16c..4df369dd2a153a7f4fcce87d8df66846374a8053 100644 (file)
@@ -1185,7 +1185,7 @@ int safe_fork_full(
         else
                 pid = fork();
         if (pid < 0)
-                return log_full_errno(prio, errno, "Failed to fork: %m");
+                return log_full_errno(prio, errno, "Failed to fork off '%s': %m", strna(name));
         if (pid > 0) {
                 /* We are in the parent process */