[systemd-devel] [PATCH 3/3] systemctl: return r instead of always returning 0

Michal Sekletar msekleta at redhat.com
Wed Nov 6 02:18:02 PST 2013


---
 src/systemctl/systemctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 9f5e273..0c1588c 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1362,7 +1362,7 @@ static int list_jobs(DBusConnection *bus, char **args) {
         }
         free(jobs);
 
-        return 0;
+        return r;
 }
 
 static int cancel_job(DBusConnection *bus, char **args) {
-- 
1.8.3.1



More information about the systemd-devel mailing list