1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 21:55:36 +03:00

process-util: show requested process name in the log

This is useful for debugging issues like #26474.
This commit is contained in:
Yu Watanabe 2023-02-19 01:26:39 +09:00
parent fe5cb7a7ae
commit b9fadf2e2c

View 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 */