1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

journal-remote-main: pass the right error variable

(cherry picked from commit 47eab95ea813fdeee686ca720287b7fe4189b2d4)
(cherry picked from commit 88710976fe309aeb8e026eabc33eca26eeb8769d)
(cherry picked from commit 131bd313c1c48767da30cd71c460cae7bbbc00a8)
This commit is contained in:
David Tardon 2024-05-07 13:13:24 +02:00 committed by Luca Boccassi
parent 814567fd06
commit 61bcb142f0

View File

@ -111,7 +111,7 @@ static int spawn_child(const char* child, char** argv) {
r = fd_nonblock(fd[0], true);
if (r < 0)
log_warning_errno(errno, "Failed to set child pipe to non-blocking: %m");
log_warning_errno(r, "Failed to set child pipe to non-blocking: %m");
return fd[0];
}