From: Yu Watanabe Date: Sat, 18 Feb 2023 16:26:39 +0000 (+0900) Subject: process-util: show requested process name in the log X-Git-Tag: v254-rc1~1233^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9fadf2e2cb83d342342341b0edba4f519890634;p=thirdparty%2Fsystemd.git process-util: show requested process name in the log This is useful for debugging issues like #26474. --- diff --git a/src/basic/process-util.c b/src/basic/process-util.c index be82d0ffe71..4df369dd2a1 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -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 */