chiark / gitweb /
service: properly pass dbus error structure
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 31 Aug 2010 21:52:51 +0000 (23:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 31 Aug 2010 21:52:51 +0000 (23:52 +0200)
src/service.c

index 071f015..85dd5d4 100644 (file)
@@ -1841,7 +1841,7 @@ static void service_enter_restart(Service *s) {
 
         service_enter_dead(s, true, false);
 
-        if ((r = manager_add_job(s->meta.manager, JOB_START, UNIT(s), JOB_FAIL, false, NULL, NULL)) < 0)
+        if ((r = manager_add_job(s->meta.manager, JOB_START, UNIT(s), JOB_FAIL, false, &error, NULL)) < 0)
                 goto fail;
 
         log_debug("%s scheduled restart job.", s->meta.id);