chiark / gitweb /
manager: when isolating undo all pending jobs, too
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Nov 2010 15:16:15 +0000 (16:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Nov 2010 21:38:43 +0000 (22:38 +0100)
src/manager.c

index afd29cf..c7de1ea 100644 (file)
@@ -1528,7 +1528,7 @@ static int transaction_add_isolate_jobs(Manager *m) {
                         continue;
 
                 /* No need to stop inactive jobs */
-                if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(u)))
+                if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(u)) && !u->meta.job)
                         continue;
 
                 /* Is there already something listed for this? */