mirror of
https://github.com/systemd/systemd
synced 2024-07-01 07:34:28 +00:00
journal-remote-main: pass the right error variable
This commit is contained in:
parent
cc4482ee23
commit
47eab95ea8
|
@ -108,7 +108,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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user