richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
923a60
From 735f6a0d81b4bbefd0cb57bbfd51f0f86e4a703e Mon Sep 17 00:00:00 2001
923a60
From: Lennart Poettering <lennart@poettering.net>
923a60
Date: Fri, 22 Apr 2016 17:31:40 +0200
923a60
Subject: [PATCH] run: make --slice= work in conjunction with --scope
923a60
923a60
Fixes: #2991
923a60
(cherry picked from commit 37e605f934892bf7458eecaeb01fc682e33cc2ad)
923a60
Resolves: #1343904
923a60
---
923a60
 src/run/run.c | 4 ++++
923a60
 1 file changed, 4 insertions(+)
923a60
923a60
diff --git a/src/run/run.c b/src/run/run.c
923a60
index 4680342846..bbb542b65b 100644
923a60
--- a/src/run/run.c
923a60
+++ b/src/run/run.c
923a60
@@ -595,6 +595,10 @@ static int transient_scope_set_properties(sd_bus_message *m) {
923a60
         if (r < 0)
923a60
                 return r;
923a60
 
923a60
+        r = transient_cgroup_set_properties(m);
923a60
+        if (r < 0)
923a60
+                return r;
923a60
+
923a60
         r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) getpid());
923a60
         if (r < 0)
923a60
                 return r;