Skip to content

Commit

Permalink
test-socket-bind: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 1174ebb)
(cherry picked from commit 3cb58c6)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent 768169b commit dbe9bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test-socket-bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int test_socket_bind(
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
return log_error_errno(errno, "Event run failed %m");
return log_error_errno(r, "Event run failed %m");
}

cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;
Expand Down

0 comments on commit dbe9bb3

Please sign in to comment.