|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 498cfc230af8f83675be2e92057956f1792969e4 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Sat, 23 Aug 2014 21:11:44 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] systemctl: Correct error message printed when
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
bus_process_wait fails
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Actually use the variable containing the return code of bus_process_wait when
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
printing the error message as a result of it failing.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/systemctl/systemctl.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index d9b8bee28d..65348193b7 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -2382,7 +2382,7 @@ static int wait_for_jobs(sd_bus *bus, Set *s) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
while (!set_isempty(s)) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
q = bus_process_wait(bus);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (q < 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- log_error("Failed to wait for response: %s", strerror(-r));
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ log_error("Failed to wait for response: %s", strerror(-q));
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return q;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|